- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
OK. I think that StandardObjectFactory.Create() tool just became available in Inventor 2022, so that will not be an option to use in this situation. The idea of using it though, was because that "SheetMetal" iLogic snippet does not have a way for you to specify which document you want it to act upon (target), and this would have been one way of making it target a specific document. The "iProperties.Value()" iLogic snippet does allow you to specify either a component name or document name, as the first (of 3) input variables, but that can be confusing to use too, when you are wanting it to target another document. In situations like this, I usually prefer to eliminate the use of that iProperties.Value snippet, in favor of the regular Inventor API route:
Document.PropertySets.Item("PropertySetName").Item("PropertyName").Value
That way you can start from an actual Document object, so you know for sure which document you are dealing with. The SheetMetal snippet can also be avoided, in favor of similar (but longer) API route if needed, similar to the code that @dalton98 posted.
Wesley Crihfield
(Not an Autodesk Employee)