How to get dependents of SketchPoint3D/SketchPoint? || A WorkPlane got invalid by merging SketchPoints.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
C# Addin with Inventor 2022. Build 287, Release: 2022.2 - Date: Sun 10/24/2021.
Is it possible to get the dependencies or usages of sketch points?
I connected SketchPoints3D with ConnectTo which led to a WorkPlane getting invalid. I don't want to have invalid objects, so I want to not connect the sketch points that are used (have dependencies).
Additional question: Is it possible to repair features like a WorkPlane after connecting its sketch points?
What I've tried so far:
I discovered the Dependents of a Sketch, e.g. a WorkPlane. Using this I would need to search, if an object is defined by the sketch points I want to connect. I could accumulate the points used by the WorkPlane with WorkPlane.DrivenBy. But like this I would need to cast every dependent object to a specific type and then check its DrivenBy.
Is there a more general way to get all objects depending on the SketchPoints3D?
The message in the following screenshot appeared, after I connected the SketchPoints3D programmatically in attached WorkPlane 01.ipt, which resulted in WorkPlane 02.ipt, and then I tried to create a boundary feature with the four lines.
The error message:
Create boundary feature failed
WorkPlane 01.ipt: Errors occurred during update
Work Plane2: Could not build this Plane by Three Points
Zero or multiple solutions for Plane by Three Points. Use Redefine Feature to change its definition.