.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Update a parametric dimension value using .NET (C# or VB)

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
staryknite
3351 Views, 3 Replies

Update a parametric dimension value using .NET (C# or VB)

Can somebody point the way to the API for interfacing with parametric features already in a drawing? Basically take values fed into .NET to change the existing parametric dimensions so the geometry will auto update. Is this just a standard drill down into a table to find the needed dimension label and starting a transaction to change the value or does the new API have specific methods for doing this? 

3 REPLIES 3
Message 2 of 4
moogalm
in reply to: staryknite

You need to use AssocVariable.SetExpression API to update params in drawing ,yes what you mentioned is the standard procedure to access\modify a param. I believe you are aware of these blogs which speaks about AssocNetwork framework API.

-A simplified .NET API for accessing AutoCAD parameters and constraints

 

http://through-the-interface.typepad.com/through_the_interface/2011/08/a-simplified-net-api-for-acce...

 

-Working With Associtative Params

 

http://adndevblog.typepad.com/autocad/2012/03/working-with-associative-parameters-from-api.html

 

 

Message 3 of 4
staryknite
in reply to: staryknite

Philippe's blog was spot on. Thank you!
Message 4 of 4
Anonymous
in reply to: moogalm

Is there any COM/ActiveX  object or other COM API which does the same thing which is done  by AssocVariable.SetExpression in .NET form?


@moogalm wrote:

You need to use AssocVariable.SetExpression API to update params in drawing ,yes what you mentioned is the standard procedure to access\modify a param. I believe you are aware of these blogs which speaks about AssocNetwork framework API.

-A simplified .NET API for accessing AutoCAD parameters and constraints

 

http://through-the-interface.typepad.com/through_the_interface/2011/08/a-simplified-net-api-for-acce...

 

-Working With Associtative Params

 

http://adndevblog.typepad.com/autocad/2012/03/working-with-associative-parameters-from-api.html

 

 


 

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost