CoCreate User Forum  

Go Back   CoCreate User Forum > Support > Customization
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 01-28-2008, 02:16 AM
jkramer's Avatar
jkramer jkramer is offline
Registered User
 
Join Date: Oct 2002
Location: the Netherlands
Posts: 382
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
Reply With Quote
  #2  
Old 02-11-2008, 10:10 PM
seb360 seb360 is offline
Registered User
 
Join Date: May 2007
Posts: 170
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
Reply With Quote
  #3  
Old 02-11-2008, 10:40 PM
jkramer's Avatar
jkramer jkramer is offline
Registered User
 
Join Date: Oct 2002
Location: the Netherlands
Posts: 382
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
Attached Files
File Type: lsp pons_afval.lsp (5.4 KB, 436 views)
Reply With Quote
  #4  
Old 02-11-2008, 11:55 PM
seb360 seb360 is offline
Registered User
 
Join Date: May 2007
Posts: 170
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 ?
Reply With Quote
  #5  
Old 02-12-2008, 12:29 AM
jkramer's Avatar
jkramer jkramer is offline
Registered User
 
Join Date: Oct 2002
Location: the Netherlands
Posts: 382
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
Attached Files
File Type: lsp pons_afval.lsp (5.5 KB, 423 views)
Reply With Quote
  #6  
Old 02-12-2008, 01:08 AM
seb360 seb360 is offline
Registered User
 
Join Date: May 2007
Posts: 170
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...)
Reply With Quote
  #7  
Old 02-12-2008, 01:17 AM
jkramer's Avatar
jkramer jkramer is offline
Registered User
 
Join Date: Oct 2002
Location: the Netherlands
Posts: 382
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
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 05:28 PM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.