Mark

Plugin AVC_Mark for AutoCAD and BricsCAD.
Inserting texts or blocks with part marks in a drawing. Info-Points for data extraction.





The Mark command will help you quickly place texts on a drawing field with part numbers or their sizes. The program can extract block names and any other information from any objects in the drawing. If you are drawing solid models of parts, you can use the Mark command to describe parts of chipboard laid out on the floor or podium or, for example, for marking assemblies of flat walls.
Another useful feature of the Mark command is the placement of special Info-Points - blocks with invisible attributes under parts or assemblies. Info points can store any properties of objects: dimensions, color, layer, name, description, etc. Then you can extract data from the Info points with the usual command _DataExtract and insert the data into an Excel spreadsheet.

Program features

  • Select objects both in the model and all visible in the viewport on the sheet.
  • Skip Annotations objects.
  • Call the Numbering program to name the solids.
  • Calculate the geometric center of objects as a mark insertion point.
  • Move marks higher or lower parts dimensions.
  • Use substitutions and fields to display properties of objects in text or attributes.
  • Insert Label into the drawing - multitexts with the description of objects.
  • Insert Info-Points into the drawing - blocks with a point and invisible attributes.
  • Insert arbitrary blocks with attributes into the drawing.
  • Use paper space to place marks over objects visible in the viewport.
  • Arrange texts in the model in the current UCS (coordinate system).
  • Customize the style and size of texts, include frames around the texts.
  • Easy create new info-points, edit the set of their attributes.
  • Quickly switch between nine mark styles directly while selecting objects, without opening the settings window.
  • Find and delete old marks among the selected objects.
  • Find and delete old marks that are visible in the viewport or drawn over the viewport.
  • Manage layers - you can create your own layer for labels. In over case the Annotation and Info layers are used.


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

Sheets of a chipboard of a podium are marked by Labels with their dimensions. And in the right viewport the part numbers are put in _TagCircle blocks.

The shelf is marked with Info-Points with attributes describing every detail.

Wall blocks are marked with Labels in the "Under" position. For the left wall, a UCS turn was made before calling Mark command.
The Marc command is able to work with perspective viewports.


Operating procedure

If you want to place your own blocks as marks, you need to create a block in advance.
You can call the Mark command from both the model and the paper. You can select objects by entering the viewport and then you will have the opportunity to place marks on the paper.
If you place marks in the model, select the desired coordinate system with the command _UCS. Texts and blocks will be expanded into the XY plane of the current UCS.
You can pre-select the marked objects, but then you will not have options to customize the command.
Use the _QSelect or SSO commands to select only the objects you need.
Call the Mark command.
If nothing is selected yet, the command will prompt you to select objects.
At the same time, select old marks if they need to be removed.
You can select a viewport or several viewports - then the program will mark everything that is visible in them now.
It's okay if you capture texts, dimensions and other annotations - the program will ignore them by default and will not try to label them.
In the selection query, you will see 2 options:
  • SwitchMarkStyle - quickly switch between nine sets of settings.
  • TUne - call setup dialog.
After pressing Enter, the program will start. A progress bar is displayed. Messages of the program are displayed in the command line.

Attention! The program does not support marks update. When calling the command for the same objects again, the labels will be placed again at the same points and superimposed on each other. Choose old marks with the marked objects and then the program will delete them.

Settings


Right in the heading of the Mark section, you can choose from the list one of the styles (sets of settings) of the marking.
  • +  You can add your new style. In this case, all settings will be copied from the current style. The program will assign the number to the style itself.
  • -   You can remove the extra style
Also in the header there is a button to reset all the settings of this style.
  • Name - The name for this mark style. Not used in the program. Only for convenience of choice.

Mark Type

  • Lable Create visible MText for each detail. 
  • InfoPoint - Create block - point with invisible attributes. 
  • Block - Use any your block with non-constant attributes. 

Mark positions

The location of the marks relative to the described parts. Part dimensions are calculated in the current coordinate system (UCS) 
  • In the Center - In the geometric center of the details or blocks.
  • Above Over the dimensions of the detail.
  • UnderUnder the dimensions of the detail.
  • Z = 0Project the mark's location on the XY plane of the current coordinate system.

Mark Options

Not Annotations - Ignore annotations if they fall into the list of marked parts. Will be excluded: 
  • annotation objects (texts, leaders, dimensions, tables, views, hatches)
  • all objects on the Annotation, Hatching, Axis, Viewport layers
  • annotative blocks
Numbering solids - Call NUMBERING command before. Use this to automatically assign a name to solids. Numbering command is configured separately.
Own layer - Create a separate layer for the marks of this style. Otherwise, the Annotation layer will be used for the Label and Block, and the Info layer - for the Info-Points. Layer management can be disabled in the Common Options and settings of the Auto-Annotation command. Then the current layer will be used.
Delete old marksDelete all old marks with same style. Delete only marks that are among the objects you have selected. When you select a viewport, all marks visible in the model 
and marks on paper that fall on the viewport will be deleted.

Text options (for the Label mark type)

StyleLabel text style. Leave blank to use current style.
Height - Text size. Set the value to zero to use the value from the system variable TextSize
Text FrameDraw a frame around the text. Frames appeared only in AutoCAD 2016 and BricsCAD V19
Format Formatting string with substitutions. In mask you can use any MText format symbols (like \P for new line) and you can use solid parameter replacement (substitutions). Used for Labels and all block attributes that have no default value.
Use the list "<---" to insert substitutions at the current position of the format string. The list contains all standard substitutions.

InfoPoint settings

When choosing the Info-Point mark type, the program will create a new block with a visible point and a set of invisible attributes. Adjust the display of points by the variables PDMode (I like 35) and PDSize (default 0). InfoPoints are suitable for further data detail extraction (DataExtraction). The list of attributes you can edit.

<--- - Select one of the substitutions to insert into the list of attributes in current position
The attribute list for InfoPoint has 2 columns:
  • Attribute  - Tag (name) of block attribute
  • Format - Substitution string for insertion into an attribute. If you leave a blank line, then the Format string of Labels will be inserted into the attribute. You can insert text into the format without substitutions, and after marking, fill in the attribute values ​​of each block manually using the usual properties panel.
Use the "<---" list to insert a new attribute at the current text position. The list contains all standard substitutions. You can edit the name and value of the attribute after insertion.
    I do not recommend editing the attribute list when Info-Points of this style are already placed in the drawing. You can get a potentially problematic situation when there are attributes in block inserts that are not in the block definition.
      Info-Points themselves will not be updated after editing the list of attributes. You will need to delete all info-points and insert them again.

      Block settings


      Block - The name of the block used as a mark. The block must contain non-constant attributes. The default attribute value may contain substitutions. If the attribute does not have a default value, the Format string will be used. And if a block has only 1 attribute and there are no substitutions in its definition, the Format string will also be applied. This makes it easier to create blocks with a single attribute. All substitutions for it can be configured in the Format line without leaving the Mark Settings dialog. For example, you can use the standard _TagCircle block (an attribute in a circle), which AutoCAD uses for leader. You can use a block from dwt-template. A template from the Common Options is used.

      On PaperIf possible, insert the block into the paper space. Use only for blocks with flat (2D) graphics.

      Versions

      2019.6.1
          New substitutions for detail - %assemlycount% and %perassembly%
          Numbering: You can number them not only in numbers, but also in Latin letters alphabetically from A to Z, then AA - ZZ and so on.
          Numbering: The starting number can be set arbitrarily through the settings window.
          Numbering: The final number is stored in the property Number_of_details of the drawing and on the next call the numbering will automatically continue.

      2019.6
          Updated dialog window localisation
          New substitution for drawing properties.

      2019.5
          Command is able to work with perspective viewports.
          Settings dialog are now correctly displayed in the Windows font scaling mode (on displays with abnormal DPI: 4K monitors and high-resolution laptops).

      2019.3.4
          AutoCAD 2020 compatibility
          New Activation method

      2018.11
          First release

      2018.10
          beta version
      Comments