Raph Posted March 19 Share Posted March 19 Hello, I'm creating a scrip that calculates and places symbols according to a precise scheme. The idea is to draw a frame with symbols that already exist. With the function: vs.Symbol(symbolName, p, rotationAngle) I can place the symbol at 0 on the Z axis I'd like to be able to place or translate the symbol, for example, 2 meters away with the opposite side down. Any ideas on how to do this? the parametric symbol is on the left what I'd like to achieve is on the right Thanks in advance ParamSymbol_Textil_Molto_v1.4.vwx Quote Link to comment
JBenghiat Posted March 19 Share Posted March 19 You need to use HMove3D() to set the height after inserting the symbol 1 Quote Link to comment
Ramon PG Posted March 19 Share Posted March 19 2 hours ago, Raph said: Hello, I'm creating a scrip that calculates and places symbols according to a precise scheme. The idea is to draw a frame with symbols that already exist. With the function: vs.Symbol(symbolName, p, rotationAngle) I can place the symbol at 0 on the Z axis I'd like to be able to place or translate the symbol, for example, 2 meters away with the opposite side down. Any ideas on how to do this? the parametric symbol is on the left what I'd like to achieve is on the right Thanks in advance ParamSymbol_Textil_Molto_v1.4.vwx 58.9 MB · 0 downloads You can better during symbol creation raise it to the final AFF level you wish and it will insert accordingly. Quote Link to comment
Raph Posted March 19 Author Share Posted March 19 1 hour ago, Ramon PG said: You can better during symbol creation raise it to the final AFF level you wish and it will insert accordingly. Hello, Thanks for the feedback but I'm not sure I understand... The symbol exists, I just call it up and place it on the drawing. The problem is that I can place it in 2D (X,Y axis) but not on the Z axis Quote Link to comment
Raph Posted March 19 Author Share Posted March 19 2 hours ago, JBenghiat said: You need to use HMove3D() to set the height after inserting the symbol Hello, thanks for the answer i'll try this option Raph Quote Link to comment
Raph Posted March 19 Author Share Posted March 19 27 minutes ago, Raph said: Hello, thanks for the answer i'll try this option Raph 2 hours ago, JBenghiat said: You need to use HMove3D() to set the height after inserting the symbol Hello, so i tried to find the function but without success do you have a description of the function? HMove3D Quote Link to comment
JBenghiat Posted March 19 Share Posted March 19 Yes, sorry, I was going purely on memory. vs.Move3DObj() is the call. https://developer.vectorworks.net/index.php?title=VS:Move3DObj If you're not familiar with the concept oh handles, you can find a few threads here and on the Vectorscript forum. You would get the handle to the symbol with vs.LNewObj() and then pass that to the move command. Quote Link to comment
Ramon PG Posted March 19 Share Posted March 19 (edited) 5 hours ago, Raph said: Hello, Thanks for the feedback but I'm not sure I understand... The symbol exists, I just call it up and place it on the drawing. The problem is that I can place it in 2D (X,Y axis) but not on the Z axis If it is a 3D object you can decide it’s height AFF during its creation. (Drinking fountains, sinks, luminaires, etc). 2D symbols I’m not sure, but you certainly can move them in space up of down after you insert them in a drawing like another poster suggested. Edited March 19 by Ramon PG Quote Link to comment
Pat Stanford Posted March 20 Share Posted March 20 And you will need to make sure your symbol is 3D only, not hybrid (2D/3D) or you will not be able to rotate it around anything except the Z axis. 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.