ObjectId assemblyId3 = _civilDoc.Assembl圜ollection.ImportAssembly(assemblyName, atcFilePath, itemId, location) Ĭatch (System. Point3d location = _editor.GetPoint("Select import assembly location").Value String atcFilePath = 2014\enu\Support\ToolPalette\Palettes\Assemblies - Imperial.atc" String assemblyName = _editor.GetString("Enter assembly name.").StringResult In the example below, the user is prompted to select a drawing location, and the BasicAssembly Assembly is inserted from the stock Imperial Assemblies ATC file shipped with Civil 3D. ?CCCONTENT_DIR%\Assemblies\Imperial\Basic Assembly.dwg The only comprehensive reference and tutorial for Civil 3D 2011 Civil 3D is Autodesk’s popular, robust civil engineering software, and this fully updated guide is the only one endorsed by Autodesk to help students prepare for certification exams. Here is the BasicAssembly XML from the Imperial Assemblies ATC file as an illustration (several elements are removed for clarity): You can determine the correct ItemId for the tool by looking at the element, which indicates the name of the Assembly. atc file (including the file name), the itemId for a tool in the ATC file, and the location in the drawing to insert the Assembly as a Point3d. To import from an ATC file, the ImportAssembly() method takes the name of the newly imported Assembly, the full path to an. Quickly learn essential Civil 3D tools and techniques Get a thorough introduction to AutoCAD Civil 3D, the industry-leading engineering software used to design roads, highways, subdivisions, drainage and sewer systems, and more. Tool catalogs provide a mechanism to organize and share Assemblies and Subassemblies. The CivilDocument.Assembl圜ollection object exposes an ImportAssembly() method that allows you to import an Assembly from an Autodesk Tool Catalog (.atc) file, or from another drawing's database.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |