LDraw.org Discussion Forums

Full Version: Snapping pneumatic tubes to new cylinders in LDCad
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?

(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.

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
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.
Thanks a lot! That works.
If have no idea how to come up with this for the piston though.