Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

General object model API - selectEntity not found

hmbes-t
Explorer

General object model API - selectEntity not found

hmbes-t
Explorer
Explorer

Hi, I'm new to API programming and I'm working on a Python programme that will help me find the object that some method (found in samples for instance or one I intent to use) belongs to. This should be quite straightforward, but when I study 'pipe.py' it reads (leaving out some lines)

- app = adsk.core.Application.get()
- ui = app.userInterface
- sel = ui.selectEntity('Select a path to create a pipe', 'Edges,SketchCurves')

In the pdf object schematic, the thread from 'UserInterface',  there's no 'selectEntity'. though.

 

I guess I don't read the pdf schematic right, but I can't see why this method is nowhere to be found inside it.

Hugo

0 Likes
Reply
Accepted solutions (2)
335 Views
2 Replies
Replies (2)

JeromeBriot
Mentor
Mentor
Accepted solution

@hmbes-t  a écrit :

In the pdf object schematic


Hello,

 

I don't know which PDF you are referring but the selectEntity method is well documented in the API documentation.

 

And post your future questions in the API forum.

 

0 Likes

hmbes-t
Explorer
Explorer
Accepted solution

Thanks and sorry for my mistake.

0 Likes