How to Create Custom Linetype

One of the commonly encountered problems is that the linetypes provided by CAD software can’t satisfy various demands in CAD Design. In order to make the design work easier, I will talk about how to create custom linetype in ZWCAD in today’sCAD topic,
To create the custom linetype, let’s start with the rules in customization.

In the ZWCAD, we can find a zwcad.lin file in C:\Users\[username]\AppData\Roaming\ZWSoft\ZWCAD\2012\en-US\Support . Open the file by Notepad, and the linetypes provided by CAD have been listed.

Custom Linetype
                          *BORDER,Border __ __ . __ __ . __ __ . __ __ . __ __ .
A, 12.700, -6.350, 12.700, -6.350, 0, -6.350

The linetype definition is composed of two parts. The first part is name and description for the particular line. Start the definition with “*”, then we could name the line. Leave a simple description after the comma. Specify the codes of lines in the second part. “A “ stands for alignment. The first parameter value should be equal to or more than “0”. The second parameter value should be less than “0”. Positive value means drawing a straight line with certain length. “0” means draw a point. Negative value means space. The punctuation after codes should be input with half-width.

Let’s take the center line as an example. The source code for which is A,1.250,-0.25,0.25,-0.25,According to the definition rules stated above, it means drawing a line with length of 1.25, ‘-0.25’ means a space with length of 0.25, ‘0.25’ means a line with length of 0.25.
Custom Linetype

If you are still not so clear about how to customize the linetype, you could draw the line first. Here is an example for double dot dash line. Let’s see how it’s defined.
Custom Linetype

Open the file zwcad.lin in ZWCAD installation path. And enter the name of this linetype as “double dots”. The source code for the line should be
 *DOUBLE_DOT,double_dot  ______..______..______
A,1.0,-0.1,0,-0.1,0,-0.1




Save the file after we add the source code.

Custom Linetype

With the same method, we could customize the linetype in design.


You may like more about “linetype” on CAD forum:


CAD Insight:getting a product from screen to store

You have been playing about on ZW3D and have come up with an incredible product. How has no-one thought of this before? It’s going to be huge? But what next? It is a long, tough journey to get from this stage to the shelves of Wal-Mart, but these tips will be able to guide you on your way.

Prototyping

To be taken seriously by any investor, manufacturer or buyer you will need a physical representation of your product. Ideally this would be a fully functioning model but if not, something that you can use to help explain your vision.
The first step would be to construct a basic version of your product with cheap materials or things lying around the house. The aim of this would be to get a better idea of your product, and allow you to make small changes before you invest fully in pre-production prototyping. Moldable plastics, such as Instamorph, can be used to design and test any plastic products, and can be remolded over and over again until you have perfected the design.
The pre-production prototype will be a more professional version of your product and will be used to attract investors and buyers to your product before you enter in to manufacturing. If the product is based on plastics, you can use a 3D printer to cheaply and easily make a one off version. If you do not own a 3D printer, makexyz.com offers a directory of printers available to hire in your area. For metallic products, you may need to enlist the help of a prototype engineer, find-able through a Google search, however this could considerably increase costs. If you are aiming to keep costs low, you could enlist the help of a local tradesman.

Patenting

After working so hard on the design of your product, the last thing you want is for someone to come along and steal the idea. Patenting can stop this; however it can be a long and costly process.
Patenting laws are different for every country so you should research closely in to your own local laws. Generally, however, you can receive a provisional patent or a non-provisional patent. A provisional patent will be far cheaper but will only last one year, giving you time to decide whether your idea is worthy of your investment.
The patent application can be done individually or through a patent lawyer. Undertaking this task individually will involve submitting sketches of your idea and a brief description. Once this is done, you will be able to label your product as “patent pending’ and will spend the next year or so convincing the patent office that your idea is truly new and non-obvious.
Employing a patent lawyer to undertake this task for you will undoubtedly cost a significant amount more, however they will be able to create a much broader patent, making it harder for other firms to design around your product.
Having successfully gained a patent for your product, it will then be up to you to identify if any competitors are violating that patent. A tough task for a small company.

Licensing or Manufacturing

Once you have covered points one and two, it moves to the hardest but most rewarding stage, but first you must make the choice between manufacturing and selling the product yourself, or licensing your idea out to another company.
This choice is largely up to you. If you have the passion for your product, as well as the financial backing and business know-how to enter the market on your own, it could be one of the most rewarding things you could do. This, however, comes at a high risk and could result in major financial losses so is certainly not a decision that should be taken lightly.
Licensing is also hard to achieve. Large companies have a long waiting list of products to produce and will only accept products with great potential. They also lack the passion that you would have having followed the product from idea conception to this stage. Having said this, the financial risk is vastly reduced and if your product is taken on, the distribution channels and marketing budgets of larger businesses can result in royalties greater than any income you could have received on your own.
Within these stages, you will also have to construct business plans, conduct market research and locate financing along with a variety of other tasks. Bringing your product to market is certainly not an easy option, but it could be both financially and personally rewarding if it is done successfully.

How to set up layout to make plotting easier

Aren’t you a little curious about Layout in CAD? Layout is a basic but powerful tool in design. With Layout, CAD users can better control their drawing scale and represent the drawing with several viewports, showing different area of the model. Also, layout has made plot setting up easier than ever.

In ZWCAD+, users can view and display the drawings with one or several models by setting up viewports in Layout. By default, there will be 2 layouts for 1 graphic, layout 1 and layout 2. Users can set up multiple layouts as they want. Each layout is with different plot setting up and paper size.

Let us show you how Layout works in the following steps.

l  In the model space, draw object with 1:1 scale, the same size as actual.
You can draw in full scale regardless of different scales in one sheet.



l  Switch to Layout 1 space, input the PAGESETUP command and Enter to the page set up dialog box, click on the Modify button. Complete the setting up for the printer, paper size, plot scale and drawing orientation, etc. And click on OK to complete set up.



l  Switch to layout space and this is the plotting area, make sure that all the graphics are within the printable range.




l  Insert the title block, you can copy or draw a title block in the Layout 1. Please be sure that the dimension of the title block should match with the paper size. The plotting area of the title block should be moved in the area of the dotted lines.



l  Input VPORTS and enter to the viewport dialog box, choose to create a single viewport. In the viewport, you can see the graphics in the models. Double click on the inside part of viewport and enter the model space. In the model space, you can edit and set up the viewport showing area of the graphics. Double click on the outside part of viewport to go back to the Layout.



l  Select viewport and input the command PROPERTIES, enter to open the property bar, set up a suitable Standard Scale and make the object present  appropriately within the viewport.



l  Annotate drawing with 1:1 annotation scale in the Layout.



l  Create a new viewport, set the viewport scale as two times to the last viewport scale. Dimensioning the objects in this viewport using the same dimension style. The dimension value will not change regardless of the viewport scale.



l  Select viewport, change its layer to Defpoints.
This way, the line boundary of the viewport will not be plotted as you plot out the drawing.



l  Now, the page setup is finished. If you plot drawing in this layout, the printer, paper size and other settings will be the same to the page setup, no need to setup the layout in model space again by manually, it will save you a lot of time to plot drawing.

You might be interested:




Freeze a particular layer in a particular viewport  with CAD software 

How to Make the Most of Polar Tracking and Object Snap to Boost Design Accuracy

Designers often need to move the cursor coordinates to define a specific point when drawing a line, a circle or any other graphics. Without an Auto tracking tool, you would have a lot of trouble doing even the simplest dimension accurately. In ZWCAD+, the polar tracking and the object snap command can help pinpoint a specific point.


Polar tracking
Polar Tracking will guide the movement of your pointer along specified angles. When polar tracking is turned on, guides will display on the screen automatically at the polar angle increment that you specify. For example, if you draw a line with polar tracking turned on and the angle increment set at 45 degrees, the rubber-banding line displays at 45 degree increments.   




l  Enabling polar tracking
To toggle polar tracking on and off at any time, simply make sure the Polar Tracking button on the status line is activated, or you can press F10. Right click on the Polar Tracking radio button, and select Settings to display the settings dialog box.



l  Polar tracking setting
CAD users can choose among different increment angles. To track using all angles, click the Track using all polar angle settings button. Click the OK button when finished.



Object Snap
Object Snap enables you to quickly select exact geometric points on existing entities without having to know the exact coordinates of those points. With Object Snap, you can select the endpoint of a line or arc, the center point of a circle, the intersection of any two entities, or any other geometrically significant position. You can also use object snaps to draw entities that are tangential or perpendicular to an existing entity.

l  Object snap setting
To turn on Object Snap, you can press F3 or activate the Object Snap radio button on the status line. Right click on the OSNAP button on the ribbon to prompt the setting dialog box.



Taking Midpoint as an example, when the Midpoint is selected, the cursor will move to the center of a circle or an arc.

Please take note that to use OSNAP effectively, you must know what points an object has that you are able to snap to. A line for example has 3 points that you can snap to: a midpoint and two endpoints. A circle has 5 points: a center and 4 quadrants.


Guess you may be interested:
How to Use Distance Query Processor in Autocad?

How to quickly manage multiple layers with Layer State

Normally, CAD users need to batch turn off multiple layers that are not needed in a drawing. How to simultaneously turn off these layers quickly? Should you turn layers off and on one by one? No! Instead, the LAYERSTATE command can do the trick.
LAYERSTATE command is used for saving, restoring and managing the state of the named layers. By saving the layers as a named layer state, users can recover, edit, import and export the named layer state of certain layers in one drawing for reusing in another drawing.
Step by step, here’s how to use LAYERSTATE.
l  Firstly, turn on or off the layers
l  Input LAYERSTATE in the command line, press enter to pull up the Layer State Manager dialog box.


l  In the prompt dialog box, click on new to create a new name for the layer state you set up for the layers needed then close the dialog box.

l  Repeat the above steps.


l  Double click on the layer state to perform the layers, exit the dialog box, you can see the layers you needed are displayed in your current drawing.
l  When enter the model space in viewport, you can as well save the layer state of the current viewport. To restore the layer state, you need to double click within the viewport to enter the model space.

Related Post:

Freeze Specified Layers in a Layout Viewport

Freeze Specified Layers in a Layout Viewport


A major benefit to using layout viewports is that you can selectively freeze layers in each layout viewport. You can also specify default visibility settings for new viewports and for new layers. As a result, you can view different objects in each layout viewport.

You can thaw or freeze layer in current viewport and future layout viewports without affecting other viewports. Frozen layers are invisible. They are not regenerated or plotted. In the illustration, the layer showing terrain has been frozen in one viewport.


Thawing the layer restores visibility. The easiest way to freeze or thaw layers in the current viewport is to use the Layer Properties Manager.

In the Layer Properties Manager, on the right side, use the column labeled VP Freeze to freeze one or more layers in the current layout viewport. To display the VP Freeze column, you must be on a layout tab. Specify the current layout viewport by double-clicking anywhere within its borders.

Freeze or Thaw Layers Automatically in New Layout Viewports


You can set visibility defaults for specific layers in all new layout viewports. For example, you can restrict the display of dimensions by freezing the DIMENSIONS layer in all new viewports. If you create a viewport that requires dimensions, you can override the default setting by changing the setting in the current viewport. Changing the default for new viewports does not affect existing viewports.

Create New Layers That Are Frozen in All Layout Viewports

You can create new layers that are frozen in all existing and new layout viewports. Then you can thaw the layers in the viewports you specify. This is a shortcut for creating a new layer that is visible only in a single viewport.

To freeze or thaw layers in the current layout viewport


  1. Double-click within a layout viewport to make it current.
  2. Click Home tab  Layer panel  Layer Properties.
  3. In the Layer Properties Manager, select the layers to freeze or thaw.
  4. Hold down CTRL to select more than one layer. Hold down SHIFT to select a sequence of layers.
  5. Click the icon in the VP Freeze column for one of the selected layers.
  6. Click OK.


To view a list of layers that are frozen in the current viewport


  1. Click a layout tab.
  2. Double-click within a layout viewport to make it current.
  3. Click Home tab  Layer panel  Layer Properties.
  4. In the Layer Properties Manager, look at the VP Freeze column for the Freeze/Thaw in Current Viewports icon.
  5. Click OK.


To freeze or thaw layers in all viewports


  1. Click a layout tab.
  2. Click Home tab  Layer panel  Layer Properties.
  3. In the Layer Properties Manager, select one or more layers to freeze or thaw.
  4. Hold down CTRL to select more than one layer. Hold down SHIFT to select a sequence of layers.
  5. In the Freeze column, click the icon to freeze or thaw.


To freeze or thaw layers in paper space



  1. Click a layout tab.
  2. Make sure that you are in paper space. (On the status bar, PAPER is on.)
  3. Click Home tab  Layer panel  Layer Properties.
  4. In the Layer Properties Manager, select the layer or layers you want to freeze or thaw.
  5. In the Freeze column, click the icon to change a layer's state. The sun icon means that a layer is thawed; the snowflake icon means that a layer is frozen.
  6. Click OK.



To freeze or thaw layers in all new viewports

  1. Click a layout tab.
  2. Click Home tab  Layer panel  Layer Properties.
  3. In the Layer Properties Manager, select the layer or layers you want to be automatically frozen or thawed in new viewports you create.
  4. Hold down CTRL to select more than one layer. Hold down SHIFT to select a sequence of layers.
  5. In the New VP Freeze column, click the icon to change a layer's state. The sun icon means that a layer is thawed; the snowflake icon means that a layer is frozen.
  6. Click OK.


 To create new layers that are frozen in all viewports

  1. Click a layout tab.
  2. Click Home tab  Layer panel  Layer Properties.
  3. Click the New Layer button to create a layer.
  4. Rename the new layer.
  5. Click the icon in the Freeze column to change the layer's state to frozen. The sun icon means that a layer is thawed; the snowflake icon means that a layer is frozen.
  6. Click OK.




You may also be interested in these posts:

Use shortcut keys to switch viewport in CAD layout quick
how to lock and unlock viewport in autocad
How to turn off layer in viewport in CAD?

CAD for Collaborative Design

New Optics is a leading lighting and backlight products manufacturer and supplier in Korea. Aiming to provide the most efficient light source for the next generation of lighting products, they have been providing high quality products and services to users since their foundation in 2005. Being high-brightness, energy-efficient, and long-lifespan, their main product, BLU, has become one of the authorized suppliers of LG Display. 


The Need
New Optics has very strict requirements on collaboration since the majority of their designers work in teams on extensive and sophisticated projects. Besides, in order to further boost profitability, they are increasingly seeking out CAD software that incurs less financial and time investment. They think light weighted CAD software may be a good choice to meet both requirements.

The Solution
Recommended by the design team in their Chinese branch, New Optics decided to introduce ZWCAD+ into their Korean headquarters. The compatibility of ZWCAD+ is highly appreciated among those who have already used it. Designers and customers can open and edit most drawings saved by mainstream CAD software, enabling better collaboration and more accurate outputs. “We are enjoying tighter interoperability with ZWCAD+,” said Mr. Lee, CEO of New Optics. “When it is time to convert the file formats, the forms retain much greater integrity.”

In addition, ZWCAD+ looks into exactly what their customers use and want, and focuses their features on these needs. This removes redundant features that are not used, to make the whole workflow and interface simple and friendly, as well as to improve the speed of the software.

The Price
The price offered by Nitrosoft, the authorized distributor of ZWCAD+ in Korea, also helped New Optics to reduce expenses and drive up profits. “Using ZWCAD+, we no longer need to worry about expensive purchasing prices or upgrade fees, and I hope more and more companies can have such an enjoyable experience with ZWCAD+,” Mr. Lee added.

See also: