Operating on multiple parts


RE: Operating on multiple parts
#5
(2017-12-27, 18:58)Roland Melkert Wrote:
(2017-12-27, 2:38)Michael Horvath Wrote: Is it possible to apply the same rotations on more than one part at the same time? E.g. rotate each part around the y axis by 90 degrees for instance, but not around a common center but around each part locally. Can this be done in MLCAD?

You can do this in my LDCad if you not afraid of an adventure in scripting.

edit: using this script:
Code:
function onRotInsRun()
 local sf=ldc.subfile()
 
 if sf:isLinked() then
   local sel=ldc.session():getSelection()

   local ori=ldc.matrix()
   ori:setRotate(45,0,1,0)

   for i=1,sel:getRefCount() do
     local ref=sel:getRef(i)
     ref:setOri(ori)
   end
 end
end

function register()

 local ani=ldc.macro('Rotate instances')
 ani:setEvent('run', 'onRotInsRun')
end

register()

Can I select the objects to operate upon using the mouse? That would save a lot of time.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
RE: Operating on multiple parts - by Jarema - 2017-12-27, 11:07
RE: Operating on multiple parts - by Michael Horvath - 2017-12-27, 21:47

Forum Jump:


Users browsing this thread: 3 Guest(s)