Frame Generator Grid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello Forum,
I got this grid of 3d sketches created with code
And the idea is that you can select the lines and make a frame.
The engineer has to manually select all the lines, then press 'Insert Frame'
Now the Frame Generator code does not seem supported in the API.
But I can do this:
.CommandManager.ControlDefinitions.Item("AFG_CMD_InsertProfile").Execute()
- Select the lines
- 3x enter
My problem is with step 2: select the lines.
Because in the context of the assembly, the SketchLines3d are SketchLines3DProxy.
So how to get the SketchLines3DProxy after determining the SketchLines3d
How do i get them in a SelectSet for frame generator
We tried:
Occurrence.CreateGeometryProxy(line, lineproxy)
A bit like how sketch dimensions is done here:
But we cant seem to get it to work.
Any help is greatly appreciated!