micgiul
Guest
Hello everyone!
I have problems with the lisp I can't fix.
I found on a site a lisp program, to view additional fields on the structure list.
Now I wanted to add my fields for example the weight of the part, once you notice the density.
I then copied the code and wrote the following function:
(defun browser-display-contents-weight (node)
(let (node-item (sd-pathname-to-obj (browsernode-objpath node)))
(if (sd-inq-part-p node-item) (sd-inq-part-density node-item :instance))
(sd-call-cmds (get_vol_prop :for_part
art node-item :tol
ercent_tol 10 :mass)
"n/a"
)
);
)
gives me error when it goes to evaluate this line (sd-call-cmds (get_vol_prop :for_part
art node-item :tol
ercent_tol 10 :mass)).
It is not a syntax error like lack of relatives tells me that it cannot evaluate the code.
I press this line works in another lisp function, and it gives me the weight!
I don't know how I can do if you can help me thank you in advance.
Thank you.
Michael
I have problems with the lisp I can't fix.
I found on a site a lisp program, to view additional fields on the structure list.
Now I wanted to add my fields for example the weight of the part, once you notice the density.
I then copied the code and wrote the following function:
(defun browser-display-contents-weight (node)
(let (node-item (sd-pathname-to-obj (browsernode-objpath node)))
(if (sd-inq-part-p node-item) (sd-inq-part-density node-item :instance))
(sd-call-cmds (get_vol_prop :for_part
"n/a"
)
);
)
gives me error when it goes to evaluate this line (sd-call-cmds (get_vol_prop :for_part
It is not a syntax error like lack of relatives tells me that it cannot evaluate the code.
I press this line works in another lisp function, and it gives me the weight!
I don't know how I can do if you can help me thank you in advance.
Thank you.
Michael