PYTHON API GETPOINTS NOT WORKING可打印版本 +- RoboDK Forum (//www.sinclairbody.com/forum) +-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN) +--- Forum: RoboDK API (//www.sinclairbody.com/forum/Forum-RoboDK-API) +--- Thread: PYTHON API GETPOINTS NOT WORKING (/Thread-PYTHON-API-GETPOINTS-NOT-WORKING) |
PYTHON API GETPOINTS NOT WORKING-sig.johnnson-04-07-2023 From the documentation:
Code:
GetPoints(feature_type=1, feature_id=0)
From the actual `.py` file:
Code:
def GetPoints(self, feature_type=FEATURE_HOVER_OBJECT_MESH)
The API documentation allows the use of `FEATURE_CURVE` and `FEATURE_POINTS`, but the actual code prevents this. Additionally, the actual code takes only one argument, disallowing the `feature_id` parameter that the API documentation specifies. Am I doing something wrong, or is this a bug? Python 3.11.1 RoboDK 5.4.3 Windows 10 Pro RE: PYTHON API GETPOINTS NOT WORKING-Albert-04-08-2023 一个维efinition of GetPoints is global and returns the the selected object (Robolink) and the other definition of GetPoints applies to one specific object (Item). I recommend you to take a look at the example you can find in the Item GetPoints: //www.sinclairbody.com/doc/en/PythonAPI/robodk.html#robodk.robolink.Item.GetPoints RE: PYTHON API GETPOINTS NOT WORKING-sig.johnnson-04-10-2023 Thanks, Albert! That solved my problem. |