Solved_ Use Trim option by C# api - Autodesk Community
Solved_ Use Trim option by C# api - Autodesk Community
Autodesk Community / Inventor Community / Inventor Programming - iLogic, Macros, AddIns & Apprentice / Use Trim option by C# api
Hello,
Reply
I need to use the Trim by code option, I create lines in a Sketch line1, line2, line3 and line4.
I need to trim line 4 from the end of the line to the intersection with line 2
Code:
Accepted solutions (2)
PlanarSketch sketch = default(PlanarSketch);
sketch = partDef.Sketches.Add(partDef.WorkPlanes[3]);
TransientGeometry tg = default(TransientGeometry); Solution 1
tg = ThisApplication.TransientGeometry;
Report
Reply
Replies (6)
06-09-2022 07:25 AM
florian_wenzel
Hi,
Correct me if im wrong.
But you can Create new line using the Intersection Points.
Report
0 Likes Reply
06-09-2022 07:27 AM
IT-Fundilusa
Report
0 Likes Reply
06-09-2022 07:31 AM
florian_wenzel in reply to IT-Fundilusa
Line4.IntersectWithCurve(Line2,)
Report
0 Likes Reply
06-09-2022 07:39 AM
IT-Fundilusa
The type of line4 is SketchLine and the does not have this function.
Report
0 Likes Reply
06-09-2022 07:51 AM
florian_wenzel in reply to IT-Fundilusa
Accepted solution
C# maybe
Report
0 Likes Reply
06-10-2022 01:19 AM
Michael.Navara
Accepted solution
VBA Object Browser for Inventor | iLogic for VisualStudio | Inventor AddIn Debugger
Report
2 Likes Reply
Reply to the topic... Post Reply
↑ Back to top
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © 2024 Autodesk Inc. All rights reserved