GstarCAD Blog

On GstarCAD, CAD Tutorials & much more!

What is TREEDEPTH variable?

Users with HUGE drawings may want to consider changing the value of the TREEDEPTH variable. It controls the GstarCAD Tree Spatial Index, which specifies the number of times the tree-structured spatial index may divide into branches. Setting the value to -3020 flattens the Z index giving you more granular nodes in the XY which yields faster object selection. It has no effect on the elevations of your objects.

Understanding Layer 0, ByLayer and ByBlock

Every time you create a new drawing, you will see a default layer: Layer0. You can’t delete it.

Then when you define their properties such as color, line weight, etc, you will see ByLayer and ByBlock properties. Most of you might already know what ByLayer means. But do you also know what does ByBlock behavior?

  • Layer0is a default GstarCAD layer. You can create geometry in your blocks on it. When you insert those blocks, they will use active layer. When you move this block to different layer, the objects in it will use it and ignore Layer 0.
  • When you define object properties (color, line weight, etc) to ByLayer, all of it properties will use the same properties as it’s defined in the layers’ properties.

Read More

How to change referenced file layer properties in master file

When you work with engineers and architects, they might use your structure drawings as a reference in their drawings. The problem is each engineer probably has their own standard. You might need to change layer properties for their drawings so it can fit your standard. So how you can do that? Do you have to create a copy of the drawing, make necessary changes before you can use it as a reference? That would defeat the purpose of XREF, isn’t it?

Changing layer properties in master file

Before we start, let’s make a naming convention to avoid confusion:

Read More

How do I purge layers that don’t want to be purged

Want to clean up your drawings from extra or garbage layers? The obvious way to purge layers is to use the PURGE command but sometimes it’s not enough. Purge might need to be run several times. Make sure to select purge nested items. Notice that in the purge dialog box you can find items you cannot purge.

  • the active or current layer
  • layers with objects
  • layer 0
  • layer Defpoints (It can be purged if you remove all dimensions)
  • layers in XREFs (xref-dependent layers

Read More

How do I save time converting files layers with Layer translator

If you ever have received a set of DWG files from a client and want to clean up the layers according to my drawing standards, how do I do it and not take days or having to write code?

The solution is quite simple, and powerful. Using Layer Translator tool, you can read a specific drawings layers or a DWS (Drawing Standards) file and use them as the target then select the drawings you want to translate layers from to your standard layers and map them.

Read More

How to use GstarCAD Layer walk

Have you ever get confused which created objects are on which layer? When you work with layer standard, you may have dozens or even hundreds of layers in your drawing. Finding which one sets to wrong layer can be a tedious work. Here is a tip: Type LAYWALK command to activate this tool. Alternatively, you can access it from menu: Format> Layer Tools> Layer Walk. Or access it from your ribbon: home tab>layers panel> layer walk.

Read More

How to reference objects to file/URL in GstarCAD

In GstarCAD is possible to link an object to another file. So if you needed to see the components specifications or 3D model of a certain component from a drawing, you can add hyperlinks to an object. The hyperlinks can be pointed directly to a manufacturer website, to a word document that contains the installation procedure, or to excel file that contains product specifications as samples.

Adding and Using Hyperlink

Adding a hyperlink is very easy. Activate hyperlink from menu: Insert> Hyperlink, or from ribbon: Insert> Data panel.

Read More