Autodesk Inventor Customization
- Start Article
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
changing derived parameters
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
hello
Can anyone tell me why this Code does nothing? I suggest, that the Parameter will not longer be derived.
Private Sub UnlinkDerivedPrameter()
Dim oDoc As PartDocument
Set oDoc = ThisApplication.ActiveDocument
Dim oDPC As DerivedPartComponent
Set oDPC = oDoc.ComponentDefinition.Features.ReferenceFeature
oDPC.Definition.Parameters.Item(1).IncludeEntity = False
End Sub
Re: changing derived parameters
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi krieg,
Did you find a solution to this?
I'm also working with derived parameters.
Feel free to email me at:
sdiaz at structurecraft dot com
Cheers,
Santiago
Re: changing derived parameters
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
The definition obtained from the component is a tear-off and does not maintain a live link. You need to set the modified definition back to the component. Something like this...
Private Sub UnlinkDerivedPrameter() Dim oDoc As PartDocument Set oDoc = ThisApplication.ActiveDocument Dim oDPC As DerivedPartComponent Set oDPC = oDoc.ComponentDefinition.Features.ReferenceFeatures.Item(1).ReferenceComponent Dim oDPD As DerivedPartDefinition Set oDPD = oDPC.Definition oDPD.Parameters.Item(1).IncludeEntity = False oDPC.Definition = oDPD End Sub
Re: changing derived parameters
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hello
Once again, a perfect answer to my question. Thanks a lot Sanjay. :-)
Re: changing derived parameters
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thanks Sanjay!
Re: changing derived parameters
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi Sanjay
This allows you to remove the derived parameter. How do you include a dervied parameter?
Thanks
Paul
