VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 3
smangelschots
228 Views, 2 Replies

list

hi

By using the list command I'll end up getting:
DISCOID Layer: "KAST_LEGPLANK"
Space: Model space
Handle = 5311a
History = Record
Show History = No
Solid type = Box
Position, X = 254.5000 Y = -180.0000 Z = 351.0000
Length: 471.0000
Width: 320.0000
Height: 18.0000
Rotation: 0

Is there a way to get this list in vba or something like it so I can use it?
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: smangelschots

See code that was written by LeonidSN here:

http://www.autocad.ru/cgi-bin/f1/board.cgi?t=26889dO

Grab the code and try it

~'J'~
Message 3 of 3
Anonymous
in reply to: smangelschots

Hi,

Most of things in the list are properties of the selected object and are
readily available in VBA.

The general format of getting the information in VBA is

Value = Object.Property

eg

Word = Line.Handle

or

Pt = Line.EndPoint

X = Pt(0)
Y = Pt(1)
Z = Pt(2)

--

Regards,


Laurie Comerford
www.cadapps.com.au

wrote in message news:5174655@discussion.autodesk.com...
hi

By using the list command I'll end up getting:
DISCOID Layer: "KAST_LEGPLANK"
Space: Model space
Handle = 5311a
History = Record
Show History = No
Solid type = Box
Position, X = 254.5000 Y = -180.0000 Z = 351.0000
Length: 471.0000
Width: 320.0000
Height: 18.0000
Rotation: 0

Is there a way to get this list in vba or something like it so I can use it?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost