#1
|
||||
|
||||
Can I disable warnings with SHA_UNFOLD???
Hi,
I'm writing a lisp tool that takes all sheet parts in an assy, and calculates the ratio between the netto material and the max. x-y area needed to punch the product out of a blank sheet. I have it working for one product at a time, but often sha_unfold gives a warning like: "Warnings occured during flat generation. Check red elements in flat drawing. - Non-perpendicular or non-convex side." If I go through a whole assy, I'll need to click OK all the time... is there a way to surpress the warning??? Thanks! Regards, Jaap |
#2
|
|||
|
|||
Re: Can I disable warnings with SHA_UNFOLD???
Do you mean you can calculate the max x-y area of the flat sheet ???
I'm really interesting... We are entering it manually in model manager... Do you think it could be possible to make a lisp macro to do that ?? that's would be great ! Thanks |
#3
|
||||
|
||||
Re: Can I disable warnings with SHA_UNFOLD???
Hi,
well, it looked very promising, and it actually works, but there's a problem. The macro makes a Flat 2D on a Workplane, and then looks for the max. and min. X- and Y-coordinates of all straight lines. In most cases this should give the rectangle in which the flat is contained. But... apparently there are some hidden lines in the Flat that "stick outside", because the result I got was often much bigger than the flat itself. To find out what was wrong, I let the macro draw all the lines, and it prooved that these lines are "lead lines" on bends. So, they are perpendecular to a bend, and the center ofthe line is exactly in the bend. Too bad... Anyway, the macro is attached to this post. Kind regards, Jaap |
#4
|
|||
|
|||
Re: Can I disable warnings with SHA_UNFOLD???
I've tried it and obtained a lisp error
NIL is not of type (OR STRING EXTENDED-STRING). then this message codenummer;naam;net.opp;uitslagx;uitslagy;opp_uitslag_excl_toeslag_2.5; opp_uitslag_incl_toeslag_2.5;rendement_excl_toeslag;rendement_incl_toeslag; rendement_uit_plaat_2x1m codenummer;naam;net.opp;uitslagx;uitslagy;opp_uitslag_excl_toeslag_2.5; opp_uitslag_incl_toeslag_2.5;rendement_excl_toeslag;rendement_incl_toeslag; rendement_uit_plaat_2x1m Do you know this pb ? |
#5
|
||||
|
||||
Re: Can I disable warnings with SHA_UNFOLD???
Hi,
Ooops.... stupid of me. I do some inquiries of database attributes, so that won't work on your OSD environment, probably. I attached a "quick and dirty" fix. Regards, Jaap |
#6
|
|||
|
|||
Re: Can I disable warnings with SHA_UNFOLD???
I found that multi unfold already calculates the flat size to display it in report...
Maybe can we use this value.... i don't know where ou how it is calculates but seems to works (not make a lot of tries...) |
#7
|
||||
|
||||
Re: Can I disable warnings with SHA_UNFOLD???
Hi,
cool.... hadn't realized that I could use Multi Unfold for this info. I'd LOVE to know how to reach this info from a Lisp tool, because we actually wanted to do a check of a complete assy (and that's a lot of work manually). Regards, Jaap |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|