CoCreate User Forum  

Go Back   CoCreate User Forum > Applications > CoCreate Modeling
Register FAQ Calendar Today's Posts Search

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-20-2018, 07:35 AM
phi phi is offline
Registered User
 
Join Date: May 2018
Posts: 5
Sheet Metal Tool Replacement macro?

Hi all,

I want our countersink stamp tools to show up on our flats with different hole sizes.

For example: in 12 Ga steel (2.667 mm), a #10 countersink stamp has a top OD of 10.30 mm and a bottom OD of 5.68 mm (actual hole dimensions). The tool we use in sheet metal has a top OD of 10.00 mm and a bottom OD of 7.98 mm, so we'd like the flat to show the hole this way.

In our drawing views, top/front/bottom/isometric we want the countersink to show 10.30mm/5.63mm. On the flat, we want the holes to show 10.0mm/7.98mm.

I understand I can use replacement macros for this.

I turn on the replacement feature with this code in my sheet metal shop file (ie, demoshop.lsp)

(sha-enable-replacements)
(sha-enable-stamp-replacement)


I then include a ": REPLACEMENT-INFO" line below my countersink stamps, like so:

: REPLACEMENT-INFO ("sha_replace_my_stamp {1} {2}" : HOLE_DIA : OUT_DIA)

I now need to write the macro "sha_replace_my_stamp" and save it in \personality\SheetAdvisor\replacement_fncs.

What language are these macros written in? Can anyone help me generate some simple code to replace the stamp in the flat?

P
Reply With Quote
 


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 01:57 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.