LDraw.org Discussion Forums
Snapping pneumatic tubes to new cylinders in LDCad - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html)
+--- Forum: LDraw Editors and Viewers (https://forums.ldraw.org/forum-11.html)
+--- Thread: Snapping pneumatic tubes to new cylinders in LDCad (/thread-22165.html)



Snapping pneumatic tubes to new cylinders in LDCad - Jaco van der Molen - 2017-05-08

Hi all,

Its been a while since I posted, but I'm still busy with LDraw!
In a recent model I am building in LDCad I use the new pneumatic cylinder both unofficial parts 19466c01 and 19467c01.
Tubes do not snap to the valves and the piston does not snap to the cylinder.

Is it possible to add this functionality?

Thanks!


RE: Snapping pneumatic tubes to new cylinders in LDCad - Roland Melkert - 2017-05-08

(2017-05-08, 8:46)Jaco van der Molen Wrote: Is it possible to add this functionality?

You need to define the snap info ether inside the .dat itself or using a shadow.

For 19466.dat this is for the two tube ends.

Code:
0 !LDCAD SNAP_CYL [gender=M] [caps=one] [secs=R 4 16] [pos=0 -20 -20] [ori=0 0 -1 -1 0 0 0 1 0]
0 !LDCAD SNAP_CYL [gender=M] [caps=one] [secs=R 4 16] [pos=0 -168 -20] [ori=0 0 -1 -1 0 0 0 1 0]

maybe Philo can make subparts, that way you only need to define it once for all parts using pneumatic valve connectors?

and 19467.dat needs
Code:
0 !LDCAD SNAP_INCL [ref=connhole.dat] [ori=0 -1 0 1 0 0 0 0 1]

If you want you can also do the cylinders but I never did those for the other pneumatic parts as they have template/shortcuts.


RE: Snapping pneumatic tubes to new cylinders in LDCad - Jaco van der Molen - 2017-05-09

Thanks a lot! That works.
If have no idea how to come up with this for the piston though.