XANSYS Forum Index
    Register    

FAQ    Search    Memberlist    Usergroups    SmartFeedSmartFeed    Profile    Log in
[Xansys] [XANSYS] [SCRIPTING] [WB] [MECHANICAL] Setting spin
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    XANSYS Forum Index -> XANSYS
Author Message
neil.dencklau
User


Joined: 11 Aug 2014
Posts: 18

PostPosted: Mon Aug 03, 2015 8:44 pm  Reply with quote

Does anyone know how to set the spin center with JScript or how to use the
SetRotationalCenter() method?

I am looking at building a script/tool to aid in verifying connections
after automatic contact has been used and for general checking of models in
Workbench Mechanical and the one thing that I cannot seem to figure out is
how to set the center of rotation of the model.

I tried:

SM.SetPickedPoint(x,y,Z);
DS.Graphics.SetRotationalCenter();
DS.Graphics.Refresh();
DS.Graphics.Redraw(1); // not sure if this is actually needed, tried with
and with out


which made intuitive sense to me, I also tried changing the order of the
commands and that doesn't work either. DS.Graphics.SetRotationalCenter() gives
me the 'Object doesn't support this action' error as well which seems odd.

I have also tried

DS.Script.doGraphicsToolbar(9100)

which is what is listed in DSPages. However I cannot get it to drop the
spin center.

I am thinking (hopefully) that it can be set using
DS.Graphics.GfxUtility.SetRotationalCenter() method, but it needs the
variables: key, xyz, ix1, iy1, ix2, iy2 and I have no idea what those are.


Thanks,
Neil




Neil Dencklau
University of Minnesota
denck007@umn.edu
612-816-1294
+-------------------------------------------------------------+
| XANSYS web - www.xansys.org/forum |
| The Online Community for users of ANSYS, Inc. Software |
| Hosted by PADT - www.padtinc.com |
| Send administrative requests to xansys-mod@tynecomp.co.uk |
+-------------------------------------------------------------+

Post generated using Mail2Forum (http://www.mail2forum.com)
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    XANSYS Forum Index -> XANSYS
All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

sleek template created by Andrew Charron