Deleting User Parameters in Assy impossible!

Deleting User Parameters in Assy impossible!

Martin-Winkler-Consulting
Advisor Advisor
394 Views
2 Replies
Message 1 of 3

Deleting User Parameters in Assy impossible!

Martin-Winkler-Consulting
Advisor
Advisor

Hi, in additon to this old Thread i created now this new one. Please also have a look at the last post i wrote at the old Thread.

 

In the attached Assembly there a 4 User Parameter that couldn't be deleted!!

To be shure that there is nothing they could depend on i delete all Parts, User iProperties etc.

So its a "nacked" assembly. I am not understanding why this Parameters are InUse and so couldn't be deleted.

This is not the only assembly this happened.

 

Any ideas about this?

 

 

 

 

 

Martin Winkler
CAD Developer
Did you find this post helpful? Feel free to like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


EESignature

0 Likes
395 Views
2 Replies
Replies (2)
Message 2 of 3

b_sharanraj
Advocate
Advocate

Hi @Martin-Winkler-Consulting

 

I have looked into the Assembly and i got why it couldn't be deleted.

 

The Property of "InUse = True" for all the 4 existing userparameters in that assembly.

 

I have created a new userparameter also and checked by default it was false only and able to delete it.

 

I don't know how it turned on to True and how to turn it in to false. But if we can turn it in to false we can delete it 🙂

 

Create a new userparameter and check the property with the below code.

 

Dim Param As Parameter

Dim i As Integer
 
i = 1
 
For Each Param In ThisApplication.ActiveDocument.ComponentDefinition.Parameters.UserParameters
 
MsgBox (ThisApplication.ActiveDocument.ComponentDefinition.Parameters.UserParameters.Item(i).Name & " - " & ThisApplication.ActiveDocument.ComponentDefinition.Parameters.UserParameters.Item(i).InUse)
 
i = i + 1
 
Next

 

Regards

B.Sharan Raj

0 Likes
Message 3 of 3

Martin-Winkler-Consulting
Advisor
Advisor

Hi B.Sharan Raj

 

thanks for your answer. Thats exactly what i figured out too. The InUse Proerty was set to True by Inventor and i could not understand why.

Because the InUse Proerty is a read only property there is no way to change it with the API and so deleting is impossible.

Martin Winkler
CAD Developer
Did you find this post helpful? Feel free to like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


EESignature

0 Likes