Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VBA Object Properties

3 REPLIES 3
Reply
Message 1 of 4
tknowledge82
917 Views, 3 Replies

VBA Object Properties

Hello,

Can anyone tell me where i can find a list of the part properties that i can use in a vba script? I have a script that extra pipe network data but I need to extract properties such as inner structure diameter, etc. but I dont know what name to use...
3 REPLIES 3
Message 2 of 4
Sinc
in reply to: tknowledge82

I'm not completely sure about the particular attributes you are trying to access...

But Autodesk has stopped adding things to the COM API. You might have a lot more luck if you switch to a .NET language, so you can use the .NET API.

Also, Microsoft has deprecated VBA and is strongly encouraging its partners to stop using VBA, so you can expect support for VBA to start decreasing rapidly across the board. These days, everything Microsoft is trending in a .NET direction. So switching to a .NET language will also position you better for the future.

-- Sinc
http://www.ejsurveying.com
http://www.quuxsoft.com
Sinc
Message 3 of 4
Anonymous
in reply to: tknowledge82

Hi,

There are two ways of seeing this data.

Press F2 inside the VBAIDE to open the Object Explorer and look in there.
Study the lists shown by the intellisense while typing code.


Regards,


Laurie Comerford

tknowledge82 wrote:
> Hello,
>
> Can anyone tell me where i can find a list of the part properties that i can use in a vba script? I have a script that extra pipe network data but I need to extract properties such as inner structure diameter, etc. but I dont know what name to use...
>
Message 4 of 4

It's a bit confusing to get to. Take a look at the Pipe sample that ships with the program, if I remember correctly it has an example when it exports the informtion to Excel.

Christopher
http://blog.civil3dreminders.com/
Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report