Robot Structural Analysis Forum
Welcome to Autodesk’s Robot Structural Analysis Forums. Share your knowledge, ask questions, and explore popular Robot Structural Analysis topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

(API) ModelPoint coordinates set

1 REPLY 1
Reply
Message 1 of 2
ngaspar
222 Views, 1 Reply

(API) ModelPoint coordinates set

Hi.
I've been developing an API on which it is supposed to set the coordinates new coordinates for a modelpoint. I tried doing so thorught the folowing code:

 

--

Dim Robot as new Robotapplication
Dim panel as IRobotObjObject

Dim model_point_3d As IRobotGeoPoint3D

 

panel = Robot.Project.Structure.Objects.Get(1)

model_point_3d = panel.Main.Modelpoints.Get(3)

model_point_3d.Set(50, 50, 50)

--

 

The code actually runs but it has no effect and also returns no errors. I've also tried checking the modelpoint coordinates after running the "Set" command, and it actually returns "50,50,50" but once again it has no effect in the Robot interface, even after refreshing the viewport. Is there any workaround for this?

Thnaks in advance 

1 REPLY 1
Message 2 of 2
Rafal.Gaweda
in reply to: ngaspar

Modelpoints has Get only
use .Main.Geometry to define \ update geometry
Example: http://forums.autodesk.com/t5/Robot-Structural-Analysis/VBA-Excel-macro-for-any-object-geometry-modi...


Rafal Gaweda

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report