Getting custom prop / Surface Area through API
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Getting custom prop / Surface Area through API

 
Post new topic   Reply to topic    CADForums.net Forum Index -> SolidWorks
Author Message
Guest






Posted: Thu Dec 01, 2005 5:10 pm    Post subject: Getting custom prop / Surface Area through API Reply with quote

How do I get the resolved value of a custom property through the API?
I'm trying to grab the value for the surface area for a part through a
macro (not a VB project).

I can get the "value" of the custom prop just fine, but cant figure out
how to get the resolved value.

The CustomPropertyManager::Get2 function is not doing it for me, or
maybe I just dont have the syntax right.

Any help appreciated!

Back to top
Markku Lehtola
Guest





Posted: Thu Dec 01, 2005 9:10 pm    Post subject: Re: Getting custom prop / Surface Area through API Reply with quote

stevefye@gmail.com wrote:
Quote:
How do I get the resolved value of a custom property through the API?
I'm trying to grab the value for the surface area for a part through a
macro (not a VB project).

I can get the "value" of the custom prop just fine, but cant figure out
how to get the resolved value.

The CustomPropertyManager::Get2 function is not doing it for me, or
maybe I just dont have the syntax right.

Any help appreciated!


Maybe you mean this?
retval = ModelDoc2.GetCustomInfoValue ( configuration, FieldName )



--

regards

Markku Lehtola

www.markkulehtola.net
Back to top
Guest






Posted: Thu Dec 01, 2005 9:10 pm    Post subject: Re: Getting custom prop / Surface Area through API Reply with quote

Man, why couldn't I find that earlier????

Thanks - it worked great!

Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> SolidWorks All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB