Jump to content

Accessing Advance Steel object properties


ColinHolloway

Recommended Posts

Hi All,

 

Has anyone done any development work with obtaining Advance Steel entity properties when the entities are opened in AutoCAD or Plant 3D?

 

In the past I have written code that extracted the end points, section, width and height from members that were drawn with ProStructures, but now that my office is changing to Advance Steel, I need to be able to extract the same information from these members.

 

I can see information for these members in the Properties palette but I am yet to find how to extract this info.

 

Any and all help greatly appreciated.

 

Thanks,

Colin Holloway

Sedgman Limited.

Link to comment
Share on other sites

What does dumpit.lsp give ?

 

;;; Dump all methods and properties for selected objects              ;
;;;===================================================================; 
;;; DumpIt                                                            ; 
;;;-------------------------------------------------------------------; 
;;;===================================================================; 
(defun C:DumpIt ( / ent) 
 (while (setq ent (entsel)) 
   (vlax-Dump-Object 
     (vlax-Ename->Vla-Object (car ent)) T
   ) 
 ) 
(textpage)
 (princ) 
)

Link to comment
Share on other sites

Results of dumpit.lsp:

 

Command: DUMPIT

Select object: ; IAcadEntity: AutoCAD Entity Interface
; Property values:
;   Application (RO) = #<VLA-OBJECT IAcadApplication 000000013fb23f10>
;   Document (RO) = #<VLA-OBJECT IAcadDocument 000000000c95bf58>
;   EntityTransparency = "ByLayer"
;   Handle (RO) = "DCB"
;   HasExtensionDictionary (RO) = 0
;   Hyperlinks (RO) = #<VLA-OBJECT IAcadHyperlinks 0000000055091028>
;   Layer = "Beams"
;   Linetype = "ByLayer"
;   LinetypeScale = 20.0
;   Lineweight = -1
;   Material = "ByLayer"
;   ObjectID (RO) = 42
;   ObjectName (RO) = "AstBeamRepr"
;   OwnerID (RO) = 43
;   PlotStyleName = "ByLayer"
;   TrueColor = #<VLA-OBJECT IAcadAcCmColor 0000000055091080>
;   Visible = -1
; Methods supported:
;   ArrayPolar (3)
;   ArrayRectangular (6)
;   Copy ()
;   Delete ()
;   GetBoundingBox (2)
;   GetExtensionDictionary ()
;   GetXData (3)
;   Highlight (1)
;   IntersectWith (2)
;   Mirror (2)
;   Mirror3D
Select object:
(3)
;   Move (2)
;   Rotate (2)
;   Rotate3D (3)
;   ScaleEntity (2)
;   SetXData (2)
;   TransformBy (1)
;   Update ()

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...