Hi, someone can tell me the 3D code for rotate the diagonal face? Solid created with command "prism". Thank you.
Das Wissen aller Anwender nutzen
Im Allplan Connect Forum tauschen sich Anwender aus, geben wertvolle Tipps oder beraten sich bei ganz konkreten Aufgabenstellungen − auch international.
Und damit wirklich keine Frage unbeantwortet bleibt, unterstützen die Mitarbeiter des Technischen Supports ebenfalls aktiv das Forum.
Es erwarten Sie:
- Foren-Vielfalt aus CAD Architektur, CAD Ingenieurbau uvm.
- Tipps von User für User
- international: Deutsch, Englisch, Italienisch, Französisch und Tschechisch
Melden Sie sich jetzt an und diskutieren Sie mit!
- Forum
- CAD Parametrische Modellierung
- CAD SmartParts
[Frage] Code 3d for rotation
Hilfreichste Antwort anzeigen Hilfreichste Antwort verbergen
Have a look at the smartpart "Test.smt"
Master-Script:
eps=0.00001
x = TAN ( c ) * a / 2
Parameter-Script:
VALUES c RANGE [-atan(b/(a/2)),atan(b/(a/2))]
3D-Script:
HANDLE b , 0 , 0 , id , "c" , 4
HANDLE b + x , 0 , 0 , id , "c" , 5
HANDLE b , a / 2 , 0 , id , "c" , 6 + 1024
HANDLE 0 , 0 , 1 , id , "c" , 7
PUT 0 , 0
PUT b + x , 0
PUT b - x , a
PUT 0 , a
PUT 0 , 0
PRISM NUM_SP / 2 , s ,
GET ( NUM_SP )
Anhänge (1)
Devi (solo) calcolare la posizione dei punti spostati ...
Questo è un problema di geometria, non un problema di codice.
Thank you for your specification but maybe I didn't explain myself well ...I meant the code for "handle" of rotation.
Have a look at the smartpart "Test.smt"
Master-Script:
eps=0.00001
x = TAN ( c ) * a / 2
Parameter-Script:
VALUES c RANGE [-atan(b/(a/2)),atan(b/(a/2))]
3D-Script:
HANDLE b , 0 , 0 , id , "c" , 4
HANDLE b + x , 0 , 0 , id , "c" , 5
HANDLE b , a / 2 , 0 , id , "c" , 6 + 1024
HANDLE 0 , 0 , 1 , id , "c" , 7
PUT 0 , 0
PUT b + x , 0
PUT b - x , a
PUT 0 , a
PUT 0 , 0
PRISM NUM_SP / 2 , s ,
GET ( NUM_SP )
Anhänge (1)
Master-Script:
eps=0.00001
x = TAN ( c ) * a / 2
Parameter-Script:
VALUES c RANGE [-atan(b/(a/2)),atan(b/(a/2))]
3D-Script:
HANDLE b , 0 , 0 , id , "c" , 4
HANDLE b + x , 0 , 0 , id , "c" , 5
HANDLE b , a / 2 , 0 , id , "c" , 6 + 1024
HANDLE 0 , 0 , 1 , id , "c" , 7
PUT 0 , 0
PUT b + x , 0
PUT b - x , a
PUT 0 , a
PUT 0 , 0
PRISM NUM_SP / 2 , s ,
GET ( NUM_SP )
Hi Nemo, this is the code I was looking for. Thank you for help! Goodbye.