WhoCanDo Posted November 17, 2010 Share Posted November 17, 2010 Hi, I wish to create a 3D symbol and place it at a selected location on my drawing. I begin in Left Isometric view and I have picked a point (GetPt3D). I then create a symbol (BeginSym ... EndSym). After the symbol is created I retreive it with Symbol (SymName, 0, 0, 0); and then Move3D (pX, pY, xZ); Move3D puts it in the right place but the Symbol procedure only works in 2D. What should I be doing to get this to work? Quote Link to comment
WhoCanDo Posted November 17, 2010 Author Share Posted November 17, 2010 (edited) Been working on it for a while and came up with: GetPt3D ( pX, pY, pZ, False); GetView (xAngleR, yAngelR, zAngleR, offsetX, offsetY, offsetZ); SetView (0, 0, 0, 0, 0, 0); Draw_3D; { My new symbol } Symbol (SymName, 0, 0, 0); { Get my new symbol } Move3D (pX, pY, pZ); SetView (xAngleR, yAngelR, zAngleR, offsetX, offsetY, offsetZ); I hope vw2011 has a Symbol3D (SymName, pX, pY, pZ); Regards Edited November 17, 2010 by WhoCanDo Quote Link to comment
maarten. Posted November 17, 2010 Share Posted November 17, 2010 Can you not use CallTool(-309) in stead of GetPt3D? It calls the Place 3D Symbol tool. You need to make your symbol first, then activate it (if it wouldn't be active already) with ActSymDef and call that tool. Quote Link to comment
Assembly Posted November 17, 2010 Share Posted November 17, 2010 have you tried using move3Dobj GetPt3D ( pX, pY, pZ, False); Symbol (SymName, 0, 0); { Get my new symbol } Move3Dobj(lnewobj,pX, pY, pZ); Quote Link to comment
WhoCanDo Posted November 18, 2010 Author Share Posted November 18, 2010 Great maaten, I love minimising code. Thanks Assembly, I have but using the CallTool works for me this time. Regards Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.