Author: Autodesk Alumni
-
Use HiddenCommands() in IExplorerExtension to Hide Vault Explorer commands
By Wayne Brill You can use the HiddenCommands function to hide commands in Vault Explorer. If this function returns names of commands they will be hidden. To get the names of Vault commands you can use the CommandIds property of the IApplication that is passed into the OnLogOn function: public void OnLogOn(IApplication application) { System.Collections.Generic.IEnumerable…
-
Custom Python Scripts for AutoCAD Plant 3D – Part 5
<?xml encoding=”UTF-8″>By David Wolfe (Contributor) Get start with Part 1, Part 2, Part 3 and Part 4 of this series. Python Script Nozzles in AutoCAD Plant 3D This article will look at creating a nozzle to use in the nozzles catalog which AutoCAD Plant 3D equipment loads when putting nozzles on equipment. The full sample…
-
Inventor API: Change Size of CC Component Placed as Custom
by Vladimir Ananyev Q: I may use the Change Size command to change a key parameter for a Content Center part placed as a Custom component. But how can I do it programmatically? A: If we talk about “Change Size as custom”, there is no existed API to support currently. There is a series of…
-
AcquireFiles() not fixing references of renamed files
By Wayne Brill If files are renamed in Vault you may see that AcquireFiles() is not fixing the references. For AutoCAD this would be an XReference that was renamed and for Inventor it will be an ipt that was renamed. A solution for AutoCAD files is to Add a Reference in your project to a…
-
Autodesk® Inventor® iLogic™ or Inventor API: Which Is the Right Tool for Me? (Autodesk University Session)
By Wayne Brill A couple of years ago I had a session on iLogic and the Inventor API. The handout and class examples may help when you first start using iLogic or the Inventor API. As these materials are no longer available on the Autodesk University site you can download them here. Download CP2544_iLogic_Inventor_API Download…
-
Placing a Part in Inventor with User Interaction
The various add methods of the ComponentOccurrences objects let you place new parts or assemblies into an assembly, but in all cases you have to specify the position as part of the placement. There are times when you don’t know where it should be positioned and want to give the user the ability to position…
-
Autodesk Memento now available for Mac
My favourite mesh generation and manipulation tool, Autodesk Memento, is now available (in Beta) for the Mac. I’ve been part of the Alpha programme for the OS X version for some time: admittedly not very actively, but I did install a number of builds and report an error or two. I’m very happy to see…
-
Reading Revit Links hierarchy
By Augusto Goncalves (@augustomaia) Basically we need to play with GetParentId and GetChilds methods to understand the hierarchy of the linked files. There is also a GetRootId method, but we’re not using here. From the documentation, we can see that GetParentId results InvalidElementId for root elements, so we do a first run through to find all…
-
About StructureSectionLabel.Create partIndex param
By Augusto Goncalves The partIndex is used to distinguish sections in sectionview with the same Network Part. As the image below, the curve pipe will have two points in the sectionview. If we want to add label for the left point, the partindex should be 0, and the right one should be 1. But a…
-
Switching assembly references based on build configuration
By Balaji Ramamoorthy Recently, a developer came up with this query : Is there a simple way to have a single copy of my code configured to compile to different folders with different references based on the desired version of AutoCAD to be run ? This is not strictly an AutoCAD API related query but…

You must be logged in to post a comment.