Inventor General

Reply
Valued Contributor
theo.bot
Posts: 64
Registered: ‎09-30-2005
Message 1 of 2 (999 Views)
Accepted Solution

Delete userparameter with ilogic

999 Views, 1 Replies
01-09-2012 02:22 AM

Dear,

 

I know how to add user parameters with ilogic, but i would like to dete them as well. I've tried to use the delete option as mentioned in the API help but I cann't get it working in ilogic.

 

any one a suggestion, this is how i create a parameter:


Format:HTML Format
Version:1.0
StartHTML: 165
EndHTML: 3855
StartFragment: 314
EndFragment: 3823
StartSelection: 314
EndSelection: 314

DimoDocAsPartDocument=ThisDoc.Document'of : oDoc as AssemblyDocumment = ThisDoc.Document

'nummerieke parameter
Try
prop=oDoc.ComponentDefinition.Parameters.UserParameters?.item("nummer")
Catch
newprop=oDoc.ComponentDefinition.Parameters.UserParameters?.AddByExpression("nummer", "100", "mm")
EndTry

greetings, 

 

theo

Valued Contributor
theo.bot
Posts: 64
Registered: ‎09-30-2005
Message 2 of 2 (997 Views)

Re: Delete userparameter with ilogic

01-09-2012 02:30 AM in reply to: theo.bot

Found the solution:

 

Format:HTML Format
Version:1.0
StartHTML: 165
EndHTML: 1602
StartFragment: 314
EndFragment: 1570
StartSelection: 314
EndSelection: 314

DimparamAsParameter 
param=oDoc.ComponentDefinition.Parameters.Item("G_L")
param.Delete

 

Maybe it's intresting for other users!

 

Kind regards,

 

Theo

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube