DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Coords on new drawings

Started by hmicad, July 10, 2025, 12:52:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hmicad

 Is there a setting that will make new drawings load with x0,y0 center of the screen?
Sometimes I forget to center up when I save.

I'm using DesignCad 3D Max 2020.
Is DesignCad 2025 working well? Would appreciate some input from the forum, before I pull the trigger.

Thanks
-Don

Rob S

#1
As to question 1, offhand I do not know of readymade way to do this.  Most people seem to want 0,0 to be the bottom left corner.

Some possibles to check out might be to run a macro on startup, load a template drawing set he way you want, see if workspace settings has a configuration for that, ....

I will do some checking myself as time permits and see if I can find a way to do it easily.

The following thread discusses startup macros

https://forum.designcad.com/index.php?topic=247.0

As to V2025, it has had quite a few bugfixes, and comes with updated dwg import export.  The rest of the new features are not huge in my mind.   So far very few problems have been posted on this forum since it has come out, which is an improvement.

There is upgrade pricing available, and you can always start with a free trial to see it works for you.   



User since forever

Mark Laing

Like Rob said make a template drawing with the settings you want,  save it where you want and open it any way you want. I mean that's what i would do.
Version 2025 is much faster than the previous ones. Every one of the bugs that it fixed slowed down all the prior versions and essentially speed up this version. I love version 2025.

bdeck

#3
Hi Mark, here's a little macro that you can run from the command line in DC.

Just copy it to any text editor and save it with an easy name like cc.d3m. Then to use it, hit the space bar and type "cc".

After the three points are in your drawing, you can move the origin to the center at any time just by using the shortcut key for zoomwindow.

Many of us have streamlined zoomwindow by removing the shift key from the shortcut.

Best Regards,
bd

PS: Modified 7/19 to remove a stray "X"  from the line redefining  ymax as its own abs value. (superfluous line)




''  cc.d3m   A center point macro to locate origin in center of window         BDeck, 7/19/25

'' Run the macro.

'' It draws 3 pointmarks on the screen: a centerpoint and xyz maxima and minima
'' points. Origin will be in the middle of any 3d projection.
'' For 2d only, remove the zmax and zmin values from the pointmark functions.
'' Hit the shortcut key for zoomwindow to display the orgin at the center of
'' window at any time.

xmin=sys(120)
xmax=sys(122)
ymin=sys(121)
ymax=sys(123)
zmin=sys(124)
zmax=sys(125)

xmax=abs(xmax)
if abs(xmin)>abs(xmax) then xmax=abs(xmin)

xymax=abs(ymax)
if abs(ymin)>abs(ymax) then ymax=abs(ymin)

zmax=abs(zmax)
if abs(zmin)>abs(zmax) then zmax=abs(zmin)

xmin=-xmax
ymin=-ymax
zmin=-zmax

sys(36)=1      ' set silent mode

>PointMark
{
  <Color 125,125,0
  <Layer 1
  <PointXYZ [xmax,ymax,zmax]
  <Size 2
  <Type 2
}

>PointMark
{
   <Color 125,125,0
  <Layer 1
  <PointXYZ [-xmax,-ymax,-zmax]
  <Size 2
  <Type 2
}

>PointMark
{
   <Color 125,125,0
  <Layer 1
  <PointXYZ 0,0,0
  <Size 2
  <Type 2
}

>PointMark         ' restore color
{
   <Color 0,0,0
  <Layer 1
  <PointXYZ 0,0,0
  <Size 2
  <Type 2
  <Null
}

>ZoomWindow
{
<Pointxyz [xmax,ymax,zmax]
<pointxyz [-xmax,-ymax,-zmax]
}

sys(36)=0
end


Modified 8/19/25 to set silent mode for speed and restore black as default color for good housekeeping

Mark Laing

Wow that's cool. Great macro.
But actually my coordinates are in northings and eastings not x and y.  And they are 6 digit numbers that are never ever 0. I made a decent little macro that lets me draw by coordinate values that is by northings and eastings and then I just zoom in on it. Thanks though.
Mark.

bdeck

#5
Quote from: Mark Laing on July 24, 2025, 04:06:19 PM
Wow that's cool. Great macro.
But actually my coordinates are in northings and eastings not x and y.  And they are 6 digit numbers that are never ever 0. I made a decent little macro that lets me draw by coordinate values that is by northings and eastings and then I just zoom in on it. Thanks though.
Mark.

Hi Mark,

Ha ! I didn't even know what a northing was until I looked it up! The most precise definition I can formulate is this: It's whatever you want it to be!

Glad I mistakenly addressed my macro to you. Thanks for the kind comment.

I have since modified the macro to 1) Clean up after itself (so subsequent entities will not be moss green), and 2) Run in silent mode (so as not to trigger an epileptic seizure.)

Best Regards
bd