![]() ![]() ![]() ![]() Advance Steel objects are, in general, composed of two AutoCAD entities: the "internal" entity and the "representation" entity. This is due to a duality of Advance Steel entities. In the sample code above, note that after getting the, it is converted to a .ObjectId before checking to see if it is a StraightBeam. For this tutorial, we will use three using alias directives as shown in the rewritten code below. Rather than including the namespace in front of the class name, we can use a 'using alias directive' at the top of the file to create a shorter name for one of the classes. This requires disambiguation in the code. The AutoCAD API has several class names in common with Advance Steel, such as ObjectId. Note that this tutorial will require 4 using statements for AutoCAD API namespaces. Using (DocumentAccess da = new DocumentAccess(null, false)) Code Region: WorkingWithAutoCADAPI command class ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |