


{"id":299416,"date":"2023-03-13T13:43:12","date_gmt":"2023-03-13T13:43:12","guid":{"rendered":"\/forum\/forums\/topic\/spaceclaim-script-sketching-coordinates-flipped\/"},"modified":"2023-03-13T13:43:12","modified_gmt":"2023-03-13T17:43:12","slug":"spaceclaim-script-sketching-coordinates-flipped","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/spaceclaim-script-sketching-coordinates-flipped\/","title":{"rendered":"Spaceclaim script sketching coordinates flipped"},"content":{"rendered":"<p>I created several scripts in Spaceclaim for parameterized geometry generation last year, and they functioned propertly.&nbsp; Today, when I tried to use one of these scripts, it didn&#8217;t function propertly.&nbsp;<\/p>\n<p>Upon investigation I discovered that the Point2D.Create(input1, input2) command was creating geometry with the inputs flipped.&nbsp;<\/p>\n<p>Here&#8217;s the section of the code in question:&nbsp;<\/p>\n<p>result = ViewHelper.SetSketchPlane(Axis1, Info1)<br \/> result = SketchHelper.StartConstraintSketching()<br \/> origin = Point2D.Create(IN(0), IN(TopHeadCenterElev))<br \/> result = SketchCircle.Create(origin, IN(HeadRad))<br \/> curvehead = result.CreatedCurves<\/p>\n<p>Last year when this script was run, the circle was created on the global Y axis, now the script creates a circle on the global Z axis.&nbsp;<\/p>\n<p>This is part of a much larger collection of scripts, so flipping the inputs would be very labor intensive.<\/p>\n<p>Is there a setting that can be adjusted to cause the scripts to function as they previously did?<\/p>\n","protected":false},"template":"","class_list":["post-299416","topic","type-topic","status-closed","hentry","topic-tag-scripting","topic-tag-spaceclaim"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["290747"],"_btv_view_count":["400"],"_bbp_likes_count":["0"],"_bbpmt_movedon":["2023-08-17 12:11:25"],"_bbpmt_movedfrom":["296275"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["299416"],"_bbp_forum_id":["27789"],"_bbp_engagement":["2327","290747"],"_bbp_voice_count":["2"],"_bbp_reply_count":["3"],"_bbp_last_reply_id":["300128"],"_bbp_last_active_id":["300128"],"_bbp_last_active_time":["2023-03-14 10:35:11"]},"test":"matt-westlakecrowniron-com-test"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/299416","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/299416\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=299416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}