Lay

Plugin AVC_Lay for AutoCAD and BricsCAD.
Lay 3D-solids to XY plane. Group and sort list of details, make FlatShot for CNC.


Using this plugin you can quickly lay out the details of a complex assembly in the XY plane. This is useful when you are designing products made from sheet materials (furniture, woodworking), and when you need to do detailing, arranges every detail drawings. The plugin allows you to put selected solids in the XY plane of the world coordinate system, regardless of how they were arranged in space.
In a single click the plugin can do copy and a few turns of solids. Moreover, you can immediately select all solids components in an assembly, rather than to lay out solid by solid. As a result you get a neat column of details sorted from highest to lowest with text title.In addition the plugin can:
  • Write the header of each detail with its size and any description.
  • Find the same detail in an assembly and to group them and to writing in a title number.
  • Sort details by layer, color, depth. When the sorting ON layer/color/depth written in the detail title.
  • Make you own title format rather default.
  • Automatically find mirrored parts or use manual marking of mirrored parts.
  • Mark texture on detail.
  • Find simple rectangular details as not lay it (if you want).
  • Do FlatShot*. Use it to make curves for CNC.  
  • Number the details, writing numbers into solid properties for further use in Smart Leaders.
  • Multiply the number of parts by the size of the batch produced.
  • On/Off its settings without dialog window directly from AutoCAD console. Thus you can make you own buttons and macros to use different variants of -Lay command. 
  • Quickly switch between several sets of settings (styles).
  • Interact with plugin Names to get the names of solids, to measure the number of mirror parts and rotate solids market as Texture Across.
*BricsCAD does not support the creation of Flatshots and can not create Fields.

Original objects remain unchanged - laid out copies of it. Plugin can work with 3D-solids only. It not works with Meshes, Surfaces and Blocks.

According to your request I can optimize the command for the standards of your company. Offer your price.

Download the plugin in the AVC_Lay_nnnn_nn.7z archive
You can use the program for free, but from time to time the activation window will appear. If you donate $10, you can disable this window.


https://autodesk-exchange-apps-v-1-5-staging.s3.amazonaws.com/data/content/files/images/XVU2PWQJ7ZJJ/appstore.exchange.autodesk.com:lay_windows32and64:en/original_721b723b-25b5-491e-b654-8a1fb7e98430_.gif Group 

Commands

Lay – Lay 3D-solids to XY plane.
-Lay – Lay command with full console control.
AVCNum – Give the names to solids as ordered numbers
SNN – Select object without name
AVCMessage - Auxiliary command for setting output messages about the progress of the program. In the demo mode it shows the activation window.

Command Lay

Select all the details in the assembly and call the Lay command. If before call selected nothing the program query to select. Selection may be saved after working command (see Common Options).
Next step select insertion point. The point query contains a setting option: 
  • SwitchStyle: Quickly switch between options-set by it number. 
  • TUne: This option open dialog window or next query to select setting.
In the settings dialog you will find all the same options as in the options of -Lay command. And besides, in the dialog are available the numbering settings and Common Options of all A>V>C> plug-ins. 

In the header, you see a drop-down list for selecting the style (set of settings). The style number will be used to quickly switch during the operation of the command. Next to the list there is a button for adding a new style. A new style is created by copying the current one. You can create up to 9 styles. Any style can be deleted exclude first.

For the convenience of editing the title of a part, you can select standard substitutions from the list. First, set the cursor at the desired position of the title string, and then select the substitution from the list.

After inputting insertion point the program will process all solids. The program looks for the largest flat surface of the solid and believes that it should be in the plane XY. Thus it appears that the plane with blind holes is on top. Also revolves detail around Z so that the longest edge extends along the axis X (if Texture=Across then using Y axis). Program sort detail by size from big to little and lay details down axis Y. 
By default calculating the size of the solid need to turn it at right angle. If this is disabled, the benefit will have the longest line or arc.
The plugin is designed for use in the design of sheet material details. In these details there is always the main plane on which determines how to put the item. This algorithm does not work for spheres, tors and shaped details. The program can measure the simplest sweep bent parts, but they must be specially tagged. This requires the plugin Names
Read more about the measure of solids in the Metric of solid section.

Plugin works only with objects such as 3D-solid. If you use blocks then explode them before invoking the command Lay.
If program cannot lay out the detail then the plugin will display a warning window and problem details will be painted red. For remove red illumination start any other command.
If enabled “Manage Layers” function, MD_Annotation layer will be assigned to the title.

Follow the messages on the console. There may be program messages.

Command “–Lay”

This command has few console options inside “select point” query. I hope you know call options by first litter or by dropdown menu.

Options and settings

  • Step: allows you to adjust how far down the Y axis will shift the following details. 
  • Rectangles: Yes|No filtering simple rectangular details. If "Rectangles" options "No" then program miss details possible cutting on saw (Format cutting machine). Program laid only details not rectangular form and details with holes.
  • Layer: Yes|No sorting list by solid layer. If "Layer" options "Yes" then program lay solids with same layer together using alphabetical order. Program write name of layer in title of any detail. It very usable then layer named like material of detail:  "MDF", "Particleboard", etc. If sorting set OFF then solids with same layer will arrange in one group.
  • Color: Yes|No sorting list by solid color and material. Work similar Layer sorting. If color of solid have not name, program use index of color for writing in title. If sorting set OFF then solids with same color will arrange in one group. If material = ByLayer usin layer name.
  • Depth: Yes|No sorting list by solid depth (thickness). Work similar Layer sorting.
  • Name: Yes|No sorting list by solid name. Name property you can enter by "Names" or "Numbering" plug-in. If sorting set OFF then solids with same name will arrange in one group.
  • Group: Yes|No union same details in one and writing count to title. Program will use hard algorithm for analyzing solids, will find same solids and lay it only one time. And will write count of details in title. ATTENTION:  program can't differentiate mirror details and believes it same. It not problem in most cases with the exception of detail with blind holes, groove, etc. Set options "NO" if you have suchlike details.
  • Mirror: Lay mirrored solid separate. Use this option jointly with "Group similar". Mark solid like "mirrored" using Names plug-in.
  • FlatShot: Yes|No calling FlatShot command after LAY. Flat geometry will have same layer and same color like solid. Invisible geometry will layer "Hidden". And if haven't Hidden layer in drawing then program just set color green. Not work in BricsCAD.
  • Title: input string for you own title text mask. In mask you can use any MText format symbols (like \P for new line) and you can use solid parameter replacement (substitutions). Input space string (or * or ?) for returning to default text mask. Program selects a default mask according to the sorting setting. The format of the output of digits (accuracy and fractional formats) can be set in the settings of the drawing units or in the A>V>C> settings in the Common Options section.
  • TExture: Write <<TEXTURE>> in a middle of a detail if solid marked like Texture = along or across.
  • NUmbering: Give the names to solids as ordered numbers. And save Mirror mark in solid.
  • MUltiplier: Ask for a number to multiply the number of parts.
  • STYle: the style of the title text. Leave blank or * to use the current text style.
  • Height: the size of the text. Assign 0 to use the system variable TextSize. Text height depends on offset header from detail.
  • CEnter:     align the Title center for the middle of detail. If the title is in the details, it will be made and a vertical align too.
  • Inside: to place the text inside detail drawing. The program does not pay attention to the details with complex contours and place the text inside the rectangle conditional restricted with dimensions of parts. If you turn on the rendering mode filled faces of solids, you will not see the headers, as texts will be below details.
After any options input program will query point again. And you can use other option.  Thus you can tune program at any call. It makes possible creating macros and buttons for different way using command LAY.

Program settings are saved in the Windows registry, in the section of the current user. Therefore, they will work equally in all drawings and in all versions of AutoCAD and BricsCad. Settings can be transferred to another computer only by exporting a registry key. To do this, in the plugin AVC_Kit there are buttons for exporting and importing settings.

AVCMessage command

Auxiliary command for setting output messages about the progress of the program. In the demo mode it shows the activation window.

Versions

2018.10

  • New feature: Text Frame

2018.7

  • Fixed: Error selecting the best face
  • Automatic delete excess plugins 

2018.5

  • Compatible with BricsCAD Pro 18
  • New substitutions %area% and %perimeter%

2018.3

  • Compatible with AutoCAD 2019
  • Auto evaluate fields 

2017.11

  • Integrated Numbering plugin: AVCNum and SNN commands
  • 9 sets of settings with the ability to quickly switch
  • Multiplier query for multiplying the number of parts
  • A list of substitutions for easy editing of the detail title
  • Counting the number of direct and mirror details with the option "Mirrored separately" turned off
  • New substitution "%c+m%" = "Direct + Mirror"

2017.3

  • Compatible with AutoCAD 2018 
  • Updated Tecnology property for Solid 
  • Decreased accuracy of asymmetry of solid 
  • New version numbering 
  • Fixed: solids were sometimes mistakenly considered different 
  • New thickness substitution writing - %thickness% 
  • New activation window

6.1

  • Fix fatal error in solid measurement procedure (It really absolutely new procedure) 
  • Solid measurement – priority of faces with 3D right angle 
  • LAY Title in detail center - corrected 
  • Measure solids without flat faces 
  • New replace chars - %asymv% and %tech%

6.0

  • Italian localization
  • German Autocad localization compatibility
  • Setting dialog window
  • Changed layer names: Annotation -> MD_Annotation, Hidden -> MD_Hidden
  • Break selection after end of command (by default)
  • Added “-Lay” command variant 
  • Mark <<TEXTURE>>
  • New algorithm of solid measurement. Right angle priority
  • Identification of mirrored details.

5.2

  • NAMES new version compatibility

5.1

  • Compatibility with last Names version (Kind property)
  • Auxiliary command for setting output messages about the progress of the program. In the demo mode it shows the activation window.

5.0

  • Added header text settings: text style, text height
  • Added header position settings: inside part, part center
  • Removed Text Offset setting. Now the offset is always equal to the height of the text.
  • Completely re-written algorithm of detail measurement 
  • Excluded mistakes of solid comparisons
  • Lay spline-based solid accelerated to 9 times
  • Optimized algorithm of search detail main plane 

4.3

  • Fix – Options Liter conflict (ColumnList and Color)
  • Fix – Solid comparer error 
  • Material like solid property

4.1

  • Fractional length formats

4.0

  • AutoCAD 2017 compatibility
  • Demo version
  • Output Texture property
  • Rotate solids market as Texture Across 
  • Sorting by solid names
  • Separate lay mirrored solids (like option)
  • Support Texture solid property (from Names 2.0 plugin)
  • Correct algorithm of sorting and summing
  • *VARIES* value if layer or name of solid in one table line differs
  • Fixed typos

3.0

  • Added compatibility with plug-in AVC_Names:
  • Detail Name form solid property
  • Measurement sweeps
  • Counting mirrored details
  • Added the ability to customize display messages from the program (command AVCMessage). 
  • Fixed typos

2.0 

  • Full upgrade. Too many new function like sorting, grouping, flatshots. 
  • Add many options

Comments