ClientFeature Error PMxClientFeatureEntry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
in the attached part I want to add a clientfeature, containing a knitFeature and a combineFeature. Creating the Clientfeature works fine, but when I want to open the file again, an error appears each time. This is only when both features (knit & combine) are included. When I create two indepeandent clientFeatures, one including the knit, the other one includung the combine everything works fine. I checked with Inventor 2017 and 2019. No difference.
This is the error message:
Interner Fehler in Beständigkeitsvorgang (Post restore of Object 000007FFFDC10428 meta-type PMxClientFeatureEntry in segment PmBrowserSegment ends up causing a cycle)
Any ideas what's wrong?
Below is a VBA code for testing the attached part file (Inv2019).
Public Sub CFtest3() Dim activeDoc As PartDocument Set activeDoc = ThisApplication.ActiveDocument Dim compDef As PartComponentDefinition Set compDef = activeDoc.componentDefinition Dim knitFeature As knitFeature Set knitFeature = compDef.Features.KnitFeatures.Item(1) Dim combineFeat As CombineFeature Set combineFeat = compDef.Features.CombineFeatures.Item(1) Dim oClientFeatures As ClientFeatures Set oClientFeatures = compDef.Features.ClientFeatures Dim oClientFeatureDef As ClientFeatureDefinition Set oClientFeatureDef = oClientFeatures.CreateDefinition("ClientFeat", knitFeature, combineFeat) Dim oCFE As ClientFeatureElement For Each oCFE In oClientFeatureDef.ClientFeatureElements oCFE.BrowserVisible = True oCFE.UserEditable = False If TypeOf oCFE.Element Is PartFeature Then oCFE.HighlightWithFeature = True Else oCFE.HighlightWithFeature = False End If Next ' Create the client feature Dim oClientFeature As ClientFeature Set oClientFeature = oClientFeatures.Add(oClientFeatureDef, "CFtest") End Sub
Andreas
etaCAD