Set origin for ConsructionPlane

graham.swannell
Participant

Set origin for ConsructionPlane

graham.swannell
Participant
Participant

I have script that has worked well for several years creating ConstructionPlanes setByThreePoints and the origin of the ConstructionPlane defaulted to sketchPointone.  Just now maybe after 9 months or so from my last running of the script the origin of the Constructionplane is not sketchPointone but seems to be some other random or unknown point.  I back tested old files and they no longer run and have the same problem.

I tried to set the origin with plane.origin but of course found out that is not the same as Constructionplane and Constructionplane object has no attribute 'origin'.

Can anyone advise how i can set the origin of the ConstructionPlane.  Thank you

0 Likes
Reply
246 Views
2 Replies
Replies (2)

BrianEkins
Mentor
Mentor

There were some changes in the core of how construction planes are constructed. These changes impact the UI and the API. Unfortunately, they weren't aware of how the changes would impact the API, and the API team wasn't aware of them until they went out. I've forwarded a link to this thread to the team responsible for construction planes so they know the impact, but I don't know what they'll decide to do.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
0 Likes

graham.swannell
Participant
Participant

Thanks Brian for the reply.  Before the changes that were made to construction planes, the construction plane origin was one of the 3 points used to define the plane.  This was good because I knew what is was.   Now it seems that the origin of the construction plane is a point that will project a normal vector from the plane to intersection the global origin.  This is difficult for me to pre-calculate and adjust for to place the sketch in the correct place.  I hope the team can make a change so the origin is easily user defined.    

0 Likes