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.

How do I combine 2 or more drawings into 1 drawing

Started by Reddog54, February 28, 2014, 08:05:10 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Reddog54

I am new to CAD and currently using trial version of DCAD max 3D v23 and have had little success finding a way to combine 2 or more drawings into 1.  My purpose for this is some components I draw will be used over and over in different drawings or may have 2 or more people working on same project but different areas and need to combine for final project.  Any help is appreciated.

prl

Hi Reddog

You can open both drawings with DesignCAD and select something in the second drawing, copy it to the clipboard (Edit Menu), then switch to your primary drawing and Paste (Edit Menu).

If the items you are copying from the second drawing are location specific and you want them pasted in the same absolute (x,y,z) location in the first drawing, you can use the clipzero.d3m and pastezero.d3m macros.  See my post from 2008   . . . . http://forum.designcad.com/index.php?topic=1423.msg7317#msg7317

By the way, welcome to the forum, DesignCAD (and possibly BasicCAD/macros). 

Edit:  I should mention there several other ways to do this also.  Loading symbols and blocks, merge command, etc. Your approach is what I call the master library drawing approach.  Keep that drawing full of your parts and pieces and then cut and paste into your work drawing. 




Reddog54

Thank you for the help and the link... will check it out too.  I am sure I will be asking more questions the more I get into it

Dr PR

#3
Reddog,

When you copy/paste from one drawing to another several things happen that you need to keep in mind.

1. Handles. If you set a handle on an object before copying it, when it is pasted into a new drawing the same handle will be set. You can use this to paste the object precisely where you want it in the second drawing.

2. The layer order will be preserved, but the layer names and properties are not transferred. So, if an object is on layer X in the first drawing it will paste into the second drawing on layer X. The pasted object will assume the properties of the layer in the new drawing (if any have been assigned).

If Layer X is not visible in the second drawing the object will be pasted anyway, but it will not be visible. However, the big blue dot handle will be visible.

The object will be selected after it is pasted. If you click the "A+" button in the "Layers Toolbox" immediately after pasting (while the object is still selected) the object will be moved to the active layer of the second drawing.

If you select everything from one drawing and copy/paste to a new drawing the layer names (and other layer properties) will not be transferred to the new drawing.

3. Scale. You can set units for a drawing (inches, millimeters, etc.) but the program defaults to no defined units (Unitless). In fact, it uses "drawing units" in drawings that have no defined units. If units have been defined the left-most box on the right side of the "Status Bar" at the bottom of the screen will show the units ("in" for inches, "mm" for millimeters, etc.). If no units have been assigned (the default) the box will say "Unitless."

Objects in the first drawing (the library) will be scaled appropriately in the second drawing IF you have defined units in both drawings. So if an object is 1 inch long in the library (where units are defined as inches) and you paste it into a drawing with units defined as millimeters, the pasted object will be 25.4 millimeters long.

However, if the first file (library) does not have defined units, when an object is copy/pasted it will come into the second drawing using the units of that drawing (if units are defined). So an object that is 1 drawing unit long in the first drawing will be pasted in as 1 inch long if the drawing units are inches, or one millimeter long if the units are millimeters, etc.

If neither drawing has defined units the pasted object will the the same number of drawing units in both drawings.

Phil
DesignCAD user since 1987

prl

Phil,

That is a nice summary.  Maybe you copy it to Tips and Tricks section titled  When you copy/paste from one drawing to another?

Reddog54


Dr PR

DesignCAD user since 1987

Dempsey

prl,

I have been using your clipzero.d3m and pastezero.d3m many times in the past. Today I need it to temporarily save a selection and got an error in the pastezero.d3m. Actually I get errors in version 22.x to 24.x. Version 18.x works fine.

I don't see anything obvious being wrong and the error message is not very clear either.

clipzero.d3m

'Program: clipzero.d3m (copy to clipboard using 0,0,0 as handle)
if sys(80)=0 then
  Message "Nothing selected. . . routine will end, press any key"
  END
end if
sys(36)=1
>sethandle
{
<type 0
<pointxyz [0,0,0]
}
>copy
{
}
sys(36)=0
end


pastezero.d3m

'Program: pastezero.d3m (paste from clipboard using 0,0,0 as handle)
>paste
{
<pointxyz [0,0,0]
}
sys(1) = 0
sys(80) = 0
regen
end


Dempsey

prl

Dempsey, the error message seems to be saying it doesn't like the opening brace? Never encountered that myself.

See if you have some crashed versions of DesignCAD processes still running in the background.