A friend in the industry asked me to write a plug-in to quickly create elevation.[TransactionAttribute (Autodesk. Revit. Attributes. TransactionMode. Manual)]CmdDrawLevel: IExternalCommand{Result Execute (ExternalCommandData commandData, messages, ElementSet elements){UIApplication app = commandData. Application;Document doc = app. ActiveUIDocument. Document;Selection sel = app. ActiveUIDocument. Selection;{Transaction ts = Transaction (doc ,);Ts. Sta
Revit does not know why there is a strange rule that it is impossible to draw a line of length less than 0.8mm in length. (0.8mm equals 32 of one inch). Cause a lot of small short lines cannot be drawn.In light steel thin-walled member, its thickness is only 0.5, some 0.7, can not be drawn. This brings some limitations to Revit's work.Here is a programmatic way to create less than 0.8mm, and its usage is a bit hard to think of.First we create a long l
Revit API allows you to find elements that pass through rays. The method is fixed mode, so there is nothing to say.Key code: [TransactionAttribute (Autodesk. Revit. Attributes. TransactionMode. Manual)]FindSupporting: IExternalCommand{Result Execute (ExternalCommandData commandData, messages, ElementSet elements){UIApplication app = commandData. Application;Document doc = app. ActiveUIDocument. Document;Tra
Some Terms face, plane, and UV are involved here. They have not been clarified yet and are recorded for the time being.
[Transaction (transactionmode. Manual)][Regeneration (regenerationoption. Manual)]
Public
Class
Firewall firewall wall: iexternalcommand{
Public
Result execute (externalcommanddata upload data,
Ref
String
MSG, elementset elements){Uidocument uidoc
=
Using data. application. activeuidocument; Transaction TS=NewTransaction (uidoc. Document,"Http://
> ADN: DEVR3894> ADN service level: Professional> product: Revit MEP 2012> Version: 2012> language: Chinese> Operating System: window7 64bit> Tel: 137xxxx1960> question title: question about modifying element parameters?> Question: The last question is about traversing the link document to create a space. The final solution is: the reason why "origin to origin" fails to be selected when the document is linked is that the coordinate system is not corre
ElementID (Convert.ToInt32 (value))); } break; Case STORAGETYPE.STRING:FM. Set (FP, value. ToString ()); Break }} catch {throw new Exception ("Invalid Value input!"); } finally {FM. Currenttype = Curfamtype; } }The Help Method Rawsetfamilyparametervalue () has been introduced before. The Familyparameter Writer can generate it in no time. If necessary the extension method can be generated as well and being used
coordinates of the points projected onto the board varProjectpoint =Isproject.xyzpoint; //the distance from the projection point to the point on the beam foreach(varBfinchbeambottomfaces) { varbp =BF. Project (Projectpoint); if(NULL!=BP) { varDistance =BP. Distance; Distance=unitutils.convertfr
The Python tricks you Don't know: 13 tricks [Practical] And python13 tricks
Sometimes you will see Cool Python code. You are surprised by its conciseness and elegance. You can't help but admire it: you can write it like this. In fact, all these elegant codes are attributed to the characteristics of Python. As long as you can master these Pythonic skills, you can
When developing an iOS application, it is critical that your program has good performance. This is also what users expect if your program is running slow or slowSlow, will incur the user's bad comment.However, due to the limitations of iOS devices, it is sometimes difficult to get good performance. In the development process, there are many things to remember andAnd it's easy to forget about the performance impact.That's why I'm writing this article! This article collects 25 tips and
Google teaches you 25 tricks to build an excellent mobile website, and Google teaches 25 tricks to build
Google researchers listened to 119 hours of user complaints about mobile websites and learned the essence of building mobile websites.
Recently, researchers from Google and AnswerLab hosted a 119-hour user test meeting where users access 100 different mobile websites every day, these websites involve a w
Computer-related "tricks and tricks"
All possible settings: Create a folder and name it"Some_name. {ED7BA470-8E54-465E-825C-99712043E01C}", Open all the settings windows for this computer [all the settings windows are in the Desktop Folder]
Double-click to lock the computer:Create a shortcut on the desktop and enter"Rundll32.exe user32.dll, LockWorkStation", Click Next, name it as the name you want, and
The technique highlights the various "tricks" used in Flash, which is unexpected effect.
How to convert Flash to exe file
With a small software Winafp, you can easily complete. Besides the function of flash playback, it also has the function of exchanging SWF file and exe file. After running the software, click on the "Gear" setting button on its panel to enter its format Conversion dialog box. First check the "swf→exe" option, then set the sou
In an ideal environment, writing the correct CSS will work properly in a browser that supports CSS. Unfortunately, we do not live in an ideal environment, where browsers have many bugs and inconsistencies. To create pages that display the same style on a variety of browsers, CSS developers need to be creative. By exploiting bugs and the non-implemented CSS, developers can selectively apply different rules to different browsers. Tricks and filters ar
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.