PDA

View Full Version : Looking for "show mod. parts" function


jkramer
11-07-2002, 06:20 AM
Hi,

I was wondering if anyone ever made a lisp routine that shows all modified parts in the viewport.
We make machines with hundreds of parts, and if I want to make sure that I didn't forget to save all modified parts (and assies), I need to browse through a very long structure browser (we are about to go from SoldiDesigner 9.4.3 to OneSpace Designer).
So, to be precise, I'm looking for a function that:

-only shows me all parts that have been modified

and

-only shows me the assies that have been modified

So that's actually 2 functions :-)
Or does OneSpace Designer have this function built in??

Thanks,
Regards,
Jaap Kramer
Neopost Industrie BV

John van Doorn
11-07-2002, 06:41 AM
Hi,

You can use the functions
(sd-inq-obj-contents-modified-p object)
and
(sd-inq-obj-instance-modified-p object)
to find all modified objects since your last store operation,

The following function gives you a list with all objects (sel_items)below an object (sel_item)

(defun inq-obj-tree-list (obj)
(cons obj
(apply #'nconc (mapcar #'inq-obj-tree-list (sd-inq-obj-children obj)))))

Sorry, but you have to assemble your own code and user-interface :mad:


Goodluck

John van Doorn