Month: January 2019

  • Precast Command: Attaching Data to Grid Lines

    Video Demo of the command:

    Precast Command: Add Marks To Grid Lines from Tek1 on Vimeo.

    The following demonstrates how to attach data to a particular line. In this case we are attached grid marks (from a Mtexts) to AutoCAD lines. We are attaching them to the line’s extension dictionary under the XRecord named “Grid”. We can then view this by using a Line Overrule which displays those Xrecords at the start and end points of those lines. The name of this particular command is: AddGridMarksToGridLines. The reason we are doing this is so that we can programmatically access the grid lines, and also have the grid mark readily attached to that particular line.

    The command to toggle the overrule on and off is: “TOGGLEOVERRULE”.

     

  • LineDirectionJigger (AutoCAD .net API Jig code)

    Many times, over my career in using AutoCAD, I’ve had this requirement: given a particular input vector, I’ve wanted to a jig a line perpendicular to it, within my code.

    Accordingly, I have written a little class which I call the LineDirectionJigger: basically it restricts users to select one direction or another. For the sake of completeness I”m posting everything, but you will want to focus on the calling class (i.e. the getViewDirection() method) and the server, which is of course the LineDirectionJigger class.

    You can see a demo of this jig starting at about 1:26 in this video here.

    And here is the code:

  • Precast Efficiency Tool: Efficiently Create Elevation Drawings

    Demo:

    Command: Marking Plan To Elevation from Tek1 on Vimeo.

    What does this command do?

    It quickly and easily allows you to create elevation drawings given a certain marking plan view of a panel. You need to first: (i) select the applicable panel lines, then (ii) you need to select a view direction. The way you select a view direction is by selecting a panel line which is perpendicular to the view direction, and using the resulting jig to select the direction you want to view the panel. (iii) Then, you must use a bounding box to select any applicable grid lines you need. (iv) use the resulting jig to position the panel lines where you want.

     Benefits of this command:

    1. Reduces Errors and
    2. Improves Efficiency.