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

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

Anonymous
Not applicable
3,946 Views
3 Replies
Message 1 of 4

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

Anonymous
Not applicable

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? 

0 Likes
Accepted solutions (1)
3,947 Views
3 Replies
Replies (3)
Message 2 of 4

moogalm
Autodesk Support
Autodesk Support
Accepted solution

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

 

 

0 Likes
Message 3 of 4

Anonymous
Not applicable
Philippe's blog was spot on. Thank you!
0 Likes
Message 4 of 4

Anonymous
Not applicable

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

 

 


 

0 Likes