DeltaCad User's Group Forums
Series of holes - possible via a macro - Printable Version

+- DeltaCad User's Group Forums (http://www.deltacadusersgroup.org/Forums)
+-- Forum: Main Forums (http://www.deltacadusersgroup.org/Forums/forumdisplay.php?fid=4)
+--- Forum: Request for Drawings, Symbols, Macros (http://www.deltacadusersgroup.org/Forums/forumdisplay.php?fid=7)
+--- Thread: Series of holes - possible via a macro (/showthread.php?tid=812)



Series of holes - possible via a macro - bobmagnuson - 02-05-2015

I'm not really familiar with how the macros work.  Would it be possible to generate a series of 5mm holes, 32mm's apart offset from a given line?

in other words, select a line and execute a macro...

line
37mm space
row of 5mm holes, 32mm apart

_________________________________________________________
37mm space
o   o    o    o    o    o    o    o    o    o    o    o    o    o    o    o    o


Thanks!


RE: Series of holes - possible via a macro - i44troll - 02-05-2015

holes for riveting?


RE: Series of holes - possible via a macro - bobmagnuson - 02-05-2015

(02-05-2015, 08:04 PM)i44troll Wrote: holes for riveting?

No, it would be for shelf pins in cabinet sides.


RE: Series of holes - possible via a macro - AlwMVMO - 02-06-2015

You can use the dcGetLineData command to retrieve the Line information. 
Then using the coordinate of the end of the line recalculate the start position for your first hole. 
Then using the For/Next/Step command and dcCreateCircle command create circles with different X coordinates.

The Macro command manuals are under the Help menu bar in the Create New Macro tab.
The Basic Deltacad Extension has the commands to manipulate Deltacad entities.
The Basic Macro Language Ref has the commands for data processing.

The samples can be a big help, I cut and paste code from the samples to the Macro Editor.
You can also look at the Macros that forum members have submitted for help.

If you have ever done any Computer programming such as Microsoft QuickBasic, a lot of the 'Basic Macro Language' commands are the same.


RE: Series of holes - possible via a macro - bobmagnuson - 02-06-2015

(02-06-2015, 01:25 AM)AlwMVMO Wrote: You can use the dcGetLineData command to retrieve the Line information. 
Then using the coordinate of the end of the line recalculate the start position for your first hole. 
Then using the For/Next/Step command and dcCreateCircle command create circles with different X coordinates.

The Macro command manuals are under the Help menu bar in the Create New Macro tab.
The Basic Deltacad Extension has the commands to manipulate Deltacad entities.
The Basic Macro Language Ref has the commands for data processing.

The samples can be a big help, I cut and paste code from the samples to the Macro Editor.
You can also look at the Macros that forum members have submitted for help.

If you have ever done any Computer programming such as Microsoft QuickBasic, a lot of the 'Basic Macro Language' commands are the same.


Thanks! This is exactly what I came up with.


- - KarenDoure - 06-05-2022

Can you use any "/mb" commands at all? Sounds like the alias may be missing from your macroquest.ini file.

You can open your MBCommon.ini file and change "LoadAlias=0" to "LoadAlias=1", then re-start modbot.