engraving with medial axis pattern sometimes misses squares.

engraving with medial axis pattern sometimes misses squares.

bfaberBB7MX
Contributor Contributor
675 Views
4 Replies
Message 1 of 5

engraving with medial axis pattern sometimes misses squares.

bfaberBB7MX
Contributor
Contributor

I have a macro written that uses a medial axis pattern to engrave parts automatically, but shapes such as periods that are squares will be removed about 50% of the time. Iv talked to our design department and got them to stretch their engraving text a bit to hopefully make all squares into rectangles but id still like to make my macro a bit more robust or at-least detect when it removes some of the engraving (maybe check if the tool path goes inside a boundary or something along those lines). Here is the code I use on a pattern that was inserted from the model based on a color selection.

 

EDIT PATTERN # CURVEEDITOR START
CURVEEDITOR SELECT ALL
CURVEEDITOR MODE OFFSET
MODE TRANSFORM OFFSET DISTANCE ".0001"
CURVEEDITOR FINISH ACCEPT
FORM MEDIALAXIS
EDIT PATTERN MEDIALAXIS ANGLE  "155"
EDIT PATTERN MEDIALAXIS CLEARANCE  "0"
EDIT PATTERN ; MEDIALAXIS APPLY
FORM ACCEPT MEDIALAXIS

 

Autodesk PowerMill Ultimate 2023    [   None ]    _2024-04-10_13-44-20.png

0 Likes
676 Views
4 Replies
Replies (4)
Message 2 of 5

stdpattern
Collaborator
Collaborator

I can't help with your issue, sorry. Your engraving method sounds interesting though. I have always used a stick font and created patterns from that for engraving. Delcam Sans Serif is my go to font.

 

Can you point me to how your method works?

0 Likes
Message 3 of 5

bfaberBB7MX
Contributor
Contributor

sure, my macro is pretty tuned to how we process parts but I can give you the backbone to how it works. You'll have to start with having your engraving color coded. I then create a pattern and insert all surfaces with that particular color

bfaberBB7MX_0-1712833767350.png

This gives you an outline of the engraving. You can then use this code to "shrink down" the lettering into a single line.

EDIT PATTERN # CURVEEDITOR START
CURVEEDITOR SELECT ALL
CURVEEDITOR MODE OFFSET
MODE TRANSFORM OFFSET DISTANCE ".0001" //this will automatically fix the direction of curves to work with the medial axis command
CURVEEDITOR FINISH ACCEPT
FORM MEDIALAXIS
EDIT PATTERN MEDIALAXIS ANGLE  "155"
EDIT PATTERN MEDIALAXIS CLEARANCE  "0"
EDIT PATTERN ; MEDIALAXIS APPLY
FORM ACCEPT MEDIALAXIS

bfaberBB7MX_1-1712833913260.png

bfaberBB7MX_2-1712833944596.png

From there you can use a pattern finishing tool path to create the engraving.  You might need to play with the axial offset and thickness to get the tool path flat.

 

 

 

0 Likes
Message 4 of 5

stdpattern
Collaborator
Collaborator

Thanks, I'll look into this. Using the single line font works, but I have to tweak it nearly every time. Any font suggestions? 

0 Likes
Message 5 of 5

bfaberBB7MX
Contributor
Contributor

Theoretically any font will work but like with my original post any perfectly square or round characters are like a 50/50 chance they are missed.

0 Likes