API implementation getting crazy

API implementation getting crazy

A.BeeseH8JKW
Participant Participant
374 Views
5 Replies
Message 1 of 6

API implementation getting crazy

A.BeeseH8JKW
Participant
Participant

Hello everyone,
I have a problem that I simply cannot solve on my own without help.
I am using an API to create somewhat more complex components.
These are created by using sketches and the Elevation operation.
Since arcs are used in the 3D sketch, a leading edge must be selected to use the elevation.
It has now been noticed that created lines/arcs are connected to each other using the smallest arcs.
This is not stored in the API and cannot be explained.
Unfortunately, a support request to Autodesk has already been rejected.

Do you have any idea why these unwanted arcs are created by Inventor?

I cannot upload the API, but I can upload an excerpt for the line creation.

Thank you for your efforts
Alex

Translated with DeepL.com (free version)

0 Likes
375 Views
5 Replies
Replies (5)
Message 2 of 6

bradeneuropeArthur
Mentor
Mentor

Please share some pictures or files to explain what you mean.

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

Message 3 of 6

Frederick_Law
Mentor
Mentor

You're not coding API.

You're using Inventor API to code.

 

Sketch3DOptions:

https://help.autodesk.com/view/INVNTOR/2025/ENU/?guid=GUID-Sketch3DOptions

Message 4 of 6

abdullah_elq
Advocate
Advocate

Try setting this value to 0

abdullah_elq_0-1716853303519.png

 

Message 5 of 6

A.BeeseH8JKW
Participant
Participant

Hello,
I have inserted a screenshot of the sketch here.
For explanation
1st section: 200mm length
2nd section: 900mm length

However, you can see an R5
I can't understand that.

0 Likes
Message 6 of 6

cidhelp
Advocate
Advocate

Hello @A.BeeseH8JKW ,

 

if you use the API-Command SketchLines3D.AddByTwoPoints, then there is a third parameter called UseAutoBend:

oSk.SketchLines3D.AddByTwoPoints(oPt1, oPt2) - UseAutoBend is on

oSk.SketchLines3D.AddByTwoPoints(oPt1, oPt2, False) - UseAutoBend is off