• Add-On’s
  • Download
  • History of AutoLISP
  • Lisp Resources
  • Run an AutoLISP

LispBox

~ This blog was initially created for people, who love autolisp routines, as I love it.

Monthly Archives: November 2014

Compare DWG File Changes in AutoCAD

27 Thursday Nov 2014

Posted by danglar71 in Tips (English)

≈ Leave a comment

Compare DWG AppHave you ever ended up with two drawings of the same name, just different time stamps on the file or an added suffix on the file name? Perhaps another team member was trying to be helpful (or not) and edited the file, now you need to know what changed.

Lucky for you there is an Autodesk App for that, and FREE.

I am using AutoCAD 2013 which is the version compatible with this app. Go to the Autodesk exchange from within AutoCAD using the icon in the upper right.

image

Or you could go to the Autodesk Exchange page http://apps.exchange.autodesk.com/

Autodesk Exchange

Search for DWG Compare App, and the install it. while there grab the Drawing Tabs App.

Autodesk Exchange Searching for DWG Compare App

After setting the original source drawing and the second version you select the little green arrow in the top of the DWG Compare plugin palette.

Select the Start Compare

Now the results will be listed on the palette and you can select them and it will highlight that specific change. You can see what has been added, modified, or deleted as they are colored green, yellow and red and to make it obvious the non-altered objects are changed to a grey.

Differences in the Two Drawings Highlighted by AutoCAD Compare DWG App

Rtext and Drawing Setup

27 Thursday Nov 2014

Posted by danglar71 in Tips (English)

≈ Leave a comment

Note: You must have Express Tools installed within AutoCAD for the examples in this tutorial to function correctly or to even make sense. Express Tools are installed by default in recent versions of AutoCAD. In older versions (2006 and earlier), it is an install option except for 2002, where they were not included on the install media

Express Tools tab

You can check to see if you have the Express Tools installed by looking at the Ribbon. You should see the “Express Tools” tab at the right-hand end in all the standard workspaces. If the Express Tools tab is not displayed on your ribbon, follow the Load Express Tools tutorial to install the tools and display the tab.

Personally, I believe that Rtext is one of the best functions within the Express Tools Suite.

In this tutorial, we are going to have a look at how Rtext can help us with our drawing setups along with a few other little things.

Firstly, you need to download this zip file that contains a drawing named “Rtext_Setup.dwg”, three sample Xref drawing files,  as well as a text file entitled “Notes.txt”.

Place them all in a directory within your AutoCAD support path and then open the drawing “Rtext_Setup.dwg.

Let’s have a look at the Title Block Data. Click the Application Button (big red ‘A’), select “Drawing Utilities” and then “Drawing Properties”. If you are using an older (pre-Ribbon) version of AutoCAD or the “AutoCAD Classic” workspace, you can open the “Drawing Properties” dialog by clicking the File drop-down menu and then selecting “Drawing Properties”.

Now choose the “Summary” tab. It should look like this:

Drawing Properties - Summary tab

Change the value of the “Title” edit box. Now choose the “Custom” tab.

Drawing Properties - Custom tab

Change a few of the entries in the “Value” edit boxes.

DO NOT change the values in the “Name” edit boxes.

Now, close the “Drawing Properties Dialog, zoom into the title block and Regen the drawing.

project details

drawing details

Did you see the values in the title block update to suit the changes you made?

Zoom into the lower right of the drawing. You should see this, although I’ve rotated it for clarity:

plot stamp

Hey thanks Kenny!!! A lovely little plot stamp. Regen the drawing after a minute or so and watch the time update automatically.

Now zoom into the lower left corner of the drawing:

XREF details

This is a list of all the Xrefs that are attached to this drawing. To test it, Detach one of the Xrefs from the drawing and Regen the drawing. The list will update.

Now open up the text file “notes.txt” within Notepad and make a few changes to the notes. Save the file and return to the drawing. Again Regen your drawing, and again watch the notes automatically update.

Note: If you don’t see the notes displaying in the drawing and instead see “RTEXT: file load error”, you may need to change the path to notes.txt. To do this, double-click the errot message to display the Properties dialog. In the “Text” section, change the path text in the “Contents” edit box.

Notes from an external file

All of these magic tricks were achieved by using the Rtext function along with a few Diesel expressions. Let’s now have a wee bit of a closer look!!

Rtext on the RibbonRtext objects are created with the Rtext command, one of the many Express Tools. You’ll find the command on the fly-out of the text panel on the Express Tools tab of the Ribbon, or you can type RTEXT at the command prompt. Remote text (RText) objects are displayed the same way normal Text, Dtext or MText objects are displayed, but the source for the text is either an external text file or the value of a DIESEL expression. You can edit an RText object with the RTEDIT command.

Command: RTEXT
Current text style: STANDARD  Text height: 0.2000  Text rotation: 0
Enter an option [Style/Height/Rotation/File/Diesel] <Diesel>: Specify an option
Rtext Options
Style Selec a text style.
Height Specify a text height.
Rotation Specify a rotation value.
File Use an external text file.
Diesel Use DIESEL code.

Tip: Once you have created an RText object with the File option, you can identify the associated text file with the LIST command.

Note: If a drawing with an RText object is opened on a computer that does not have RTEXT installed, the proxy object that results displays the bounding box of the RText object. If you plan to send your drawing to someone who does not have RTEXT, you can explode the RText objects to MText objects with the EXPLODE command.

You can use an RText object as a file reference to display text, such as a sheet note or a legal disclaimer, that is common to several drawings. You can also use it to display larger bodies of text such as specifications or assembly instructions.

Here are some examples of how RText objects with DIESEL expressions can be used in your drawings.

To display the drawing name:

Drawing file: $(getvar, "dwgname")

Output: Drawing file: 102-fp12.dwg

To include the directory path with the file name:

Drawing name: $(getvar, "dwgprefix")$(getvar, "dwgname")

Output: Drawing file: C:\Projects\97-102\Arch\102-fp12.dwg

Note: If you reference the drawing path or name in a standard title block, it will always display the file name of the drawing, even if the title block appears in an Xref file.

When you plot a drawing, you may want the hard copy to show the date and the time that the plot was created. The following DIESEL expression displays this information in your drawing:

$(edtime, 0, MON DD","  YYYY - H:MMam/pm)

Output: May 22, 2012 – 11:12pm

The $(getprop) DIESEL function

RText supports Drawing Properties through a locally defined $(getprop) DIESEL function. With $(getprop), values from Drawing Properties dialog box tabs can be extracted and displayed in RText objects.

The syntax for the $(getprop) DIESEL function is:

$(getprop, property name)

Where “property name” can be any of the following fields from the DWGPROPS command:

Title
Subject
Author
Comments
Keywords
LastSavedBy
Revno
Custom Property the name of a custom property

For example, if the Drawing Properties for a drawing contains the text “Excavated Site” is the Subject, the DIESEL expression:

Subject: $(getprop, subject)

In an RText object will display as:

Subject: Excavated Site

Note:$(getprop) DIESEL function is supported only in RText objects. Unlike arguments supplied to other DIESEL functions, arguments to $(getprop) cannot be quoted. Arguments are not case sensitive.

If you have a custom property named “Project Name”, the following DIESEL expression will display the value:

Project: $(getprop, %PROJECT NAME)

Note: Errors in using $(getprop), such as improper syntax or bad arguments, will display (GETPROP ERROR). If a nonexistent custom property name is used, $(getprop) will display an empty string.

The $(xrefs) DIESEL function

RText supports listing Xref files attached to a drawing through the $(xrefs) DIESEL function.

The syntax for the $(xrefs) DIESEL function is:

$(xrefs [, flags [, leader [, trailer]]])

Where “flags” is a bitflag value; valid options are shown in the table below,
“leader” is a text string to be inserted before each Xref entry and
“trailer” is a text string to be appended to each entry except the last.

Bitflag values and their meaning
1 (default) include Xref file name (not exclusive with flag 2)
2 include Xref block name (not exclusive with flag 1)
4 don’t display file name extension
8 don’t display path
16 show nesting with additional spacing

Note: Bitflag values are added for compound output, so a value of 5 would display the path and filename but without the file extension.

Examples

The RText DIESEL expression $(xrefs,3)displays a list of Xrefs in the following format:

B-ELEC [c:\proj-14\b-elec.dwg]
M-ELEC [c:\proj-14\m-elec.dwg]
R-ELEC [c:\proj-14\r-elec.dwg]
F-ELEC [c:\proj-14\f-elec.dwg]

While the expression $(xrefs,2,Includes: ) will list the Xrefs as:

Includes: B-ELEC
Includes: M-ELEC
Includes: R-ELEC
Includes: F-ELEC

The $(images) DIESEL function

RText supports listing images attached to the drawing through the $(images) DIESEL function. The syntax for the $(images) DIESEL function is:

$(images [, flags [, leader [, trailer]]])

Where “flags” is a bitflag value; valid options are shown in the table below,
“leader” is a text string to be inserted before each entry and
“trailer” is a text string to be added after each entry except the last.

Bitflag values and their meaning
4 don’t display file name extension
8 don’t display path

Behavior is similar to the $(xrefs) function.

The $(getrec) DIESEL function

>RText supports displaying Xrecord data through the $(getrec) DIESEL function. The syntax for the $(getrec) DIESEL function is:

$(getrec, key, code)

Where “key” is the entry name in the Named Object Dictionary and
“code” is the group code to extract.

The $(getrec) function extracts a value from an Xrecord by looking in the Named Object Dictionary for key, then for a data value associated with code. Currently, only group codes in the ranges 1-9 (string), 40-59 (real), 60-79 (integer) and 300-309 (string) are supported.

by Kenny Ramage & David Watson

Tool palette Macros for working with AutoCAD Viewports

26 Wednesday Nov 2014

Posted by danglar71 in Tips (English)

≈ Leave a comment

If you enjoy tinkering with AutoCAD, you may have noticed how every command is triggered by a complicated looking bit of text. If you don’t know what I’m referring to – type ‘cui’ at the command line and select one of the commands in the bottom left window. You should see something like this:

An AutoCAD Command Macro in the CUI

This command string:

‘^C^C_line’

Is known as a command Macro, and you can create your own command Macro’s to help speed up your workflow.

In this post I want to share some commands Macro’s that I use to help me speed things up when I’m working with AutoCAD’s paper space viewports, and I’ll show you how to set these up on a tool palette for easy access.

Setting up.

Before we start work, I want you to open up your company standard AutoCAD template DWG file. Navigate to paper space, make your company standard viewport layer active and create a viewport. I’ve used a layer called ‘VPORTS’ for this exercise, but you should use the appropriate standard layer.

Tip: If you don’t have a company standard template read Edwin’s excellent post on templates here.

Setting up a tool palette.

In this post I am advising you to host your new tools on a tool palette, simply because tool palettes are easy to set up, maintain and migrate. You could apply these techniques in the CUI instead and build your custom commands into a tool bar or ribbon tab… but that’s for another time.

To open the tool palettes go to:

View Ribbon tab > Palettes panel > Tool Palettes

Or type ‘toolpalettes’ at the command line and hit Enter.

Now you have your tool palettes open, right click over any palette and choose ‘New Palette’. You can name your new palette anything you like; I’ve called mine ‘ACME VPORTS’.

Note: Tool palettes are not saved until the drawing is closed.

Creating a new tool

The next part is the fun bit. Click on the viewport you created earlier and drag and drop it onto the tool palette. You have now created your first tool – that was easy!

Creating a new AutoCAD viewport tool on a tool pallette

Note: Left Click on the viewport once to select it. Now with the viewport selected, left click again and hold the left hand mouse button down. You can now drag the viewport onto the palette to create the tool.

To test your tool, click on it. You should be prompted to draw a viewport. Once you’ve created a viewport, click on it once to select it. Notice which layer it’s on? That’s right; your new tool has created a viewport, on your company standard layer and it didn’t even change the current layer while it did it.

Note: This tool will also create the layer it needs if the layer does not already exist in the current drawing file.

I hope that you are already impressed – but we can do more.

How does it work?

To see what the tool is doing, right click over it and chose ‘Properties…’. I hope you notice the ‘Command string’ box, about half way down. The command string that this tool is running looks like this:

^C^C_vports

The ^C part of the macro is equivalent to pressing the ‘Esc’ key – it cancels the current command. This command uses ^C^C because some AutoCAD commands need two ‘escapes’ to completely cancel out of the currently command. It is good practice to start all your command Macro’s this way.

Note: Can you think of an AutoCAD command that would need THREE ‘escapes’ to fully cancel out of it? Answers in the comments please…

The underscore before the command is used to ‘Internationalize’ the command. If you are not working with the English language version of AutoCAD the command names will have been translated. The underscore tells AutoCAD to use the default English version of the command.

The ‘vports’ part of the string is exactly the same as typing ‘vports’ at the command line.

I also want you to notice the boxes under the ‘General heading’. You can see that this tool will create a viewport on the ‘VPORTS’ layer, and you can also override some of the other properties here.

AutoCAD Tool palette tool properties

Applying a little finesse.

There are a number of ways that you can personalize your new tool. You can change the name to something that makes more sense to you. You can change the description (the description value becomes a handy little tool tip when you hover over the tool on the palette). You can also change the picture by right clicking over the picture and choosing ‘specify image’.

Personalize your AutoCAD toolpallette tools

Back to the Macro.

In this case the command string that has been created uses the ‘vports’ command by default. However, the vports command also has a purpose in Model space. Let’s change the tool to use the ‘mview’ command instead, which only works in paper space.

All you need to do is change:

^C^C_vports

To

^C^C_mview

More viewport creation tools.

To create more tools, just right click over the tool and chose ‘copy’ and then hover anywhere over the blank palette and choose ‘paste’.

Here is another example of an alternative command macro you could use:

^C^C_mview;f;

The semi-colon ‘;’ in this command strings is just like pressing ‘enter’ on your keyboard. So the macro could be read as:

Hit ‘esc’ twice, type ‘mview’ at the command line, hit ‘enter’, type ‘f’ at the command line and then hit ‘enter’ again.

Try it out. What do you get?

That’s right – a viewport, taking up all the available room on the drawing sheet. Writing this into a command Macro allows us to do all that with a single click!

How about this one:

^C^C_mview;2;v;

This command string launches the Mview command with the ‘Two viewports, vertically aligned’ options current. Just two clicks to create two viewports, on the right layer.

Here’s one more:

^C^C_mview;p

This command string uses the Mview command with the ‘Polygonal’ option to create an irregular shaped viewport.

The final one in this section gets a bit more complicated:

^C^C_circle;\\_mview;o;l

This command string creates a circular viewport. It does this by running the circle command, and then immediately afterward, running the Mview command using the option to create a viewport from the last object created, in this case our circle.

The two back slashes ‘\\’ are interpreted as pauses. In this case the user must pick the centre point and radius of the circle. This is two clicks – therefore two back slashes.

Note: It is not easy to include error checking in a command macro. In this case the macro expects two clicks, if the user decides to choose a method of creating a circle other than ‘Centre radius’ the command will fail. If you need to include error checking in your Macro’s you may need to use Lisp.

Locking and unlocking viewports globally.

For the next example, I want you to copy your tool as you did before; but this time, open the tools’ properties and set all the values in the ‘General’ options to ‘use current’ except the layer control, which you should change to ‘0’. In this case, our macro won’t be creating any geometry, so we don’t want those properties set.

AutoCAD tool palette tool default options

The next example will help us speed up locking and unlocking viewports:

^C^C_mview;l;on;all;;

Run the command and then hit F2 to bring up the AutoCAD text window. Have a look to see what commands the Macro is executing…

The AutoCAD command window - viewport locking

That’s right; this command string locks all the viewports in the current layout – very handy to run before you close down your drawing for the day.

The reciprocal is this, which unlocks all the viewports in the current layout:

^C^C_mview;l;off;all;;

Turning the viewports layer on and off

To turn the ‘VPORTS’ layer on and off, we need to use the ‘layer’ command. Copy and paste the tool as before, and add this command string to turn the ‘VPORTS’ layer on:

^C^C_-la;on;VPORTS;;

And this command to turn the ‘VPORTS’ layer off.

^C^C_-la;off;VPORTS;;

I hope by now that you can work out what these macros are doing. If you aren’t sure, click the button to run the macro, and then hit F2 to bring up the command window and see what’s happened.

Note: Replace ‘VPORTS’ with your layer name. If you layer name contains a space, make sure that you put the layer name in quotes e.g. “VPORTS 1”. The layer name is not case sensitive.

Freezing and thawing the viewports layer

If you would prefer to freeze or thaw the VPORTS layer, you can use these two macros instead.

To freeze the ‘VPORTS’ layer:

^C^C_-la;f;VPORTS;;

To thaw the ‘VPORTS’ layer:

^C^C_-la;t;VPORTS;;

Round up and further reading

I hope that you enjoyed this post and that you found it useful. If you have any questions, please leave a comment below.

If you’d like to know more about Tool palettes, Edwin has a great tutorial here:

http://cad-notes.com/2009/09/creating-your-own-autocad-palette/

If you’d like to know more about command macros check out the developer help files. You can find the help files online here http://cadso.co/t17wRy.

The ACME AutoCAD viewport tool palette

<!–

–>

AutoCAD 2015 and AutoCAD LT 2015 Essentials

26 Wednesday Nov 2014

Posted by danglar71 in Books

≈ Leave a comment

AutoCAD 2015 and AutoCAD LT 2015 Essentials.pdf
AutoCAD Секреты, которые должен знать каждый пользователь.pdf
Mastering AutoCAD 2015.pdf
http://www.ex.ua/79728676

Visual LISP-AutoCAD PDF Book

26 Wednesday Nov 2014

Posted by danglar71 in Lisp Collection 2014

≈ 7 Comments

http://www.ex.ua/79728944

SHX files Viewer for AutoCAD Fonts

26 Wednesday Nov 2014

Posted by danglar71 in Lisp Collection 2014

≈ Leave a comment

http://www.ex.ua/79731104
Name: danglar
s/n: sv89356241
Code: LLJL6Y2L

Отмена операций в AutoCAD

26 Wednesday Nov 2014

Posted by danglar71 in Tips (Russian)

≈ Leave a comment

Команду отмены можно запустить несколькими способами:

  • из панели быстрого доступа, находящейся в верхней части окна программы. Нажатие на стрелочку Отмена отменяет одну последнюю команду

001

Если нажать на раскрывающийся список рядом с кнопкой, то можно выбрать группу команд для отмены

  • Нажатие сочетания клавиш Ctrl+Z также приведет к отмене последней команды
  • Ввод «короткой» команды О (_U) приводит к отмене последней команды
  • Команда Отменить (_Undo)

Если с первыми тремя способами отмены все ясно и просто, то с последней командой стоит разобраться подробней.

Команда Оменить имеет ряд возможностей и опций:

002

  • На запрос количества операций можно ввести число от 1 до 327679. Отменить 20 операций таким способом гораздо проще, чем 20 раз нажимать кнопку отмены. Если просто нажать Enter без ввода числа, то отменится одна операция
  • Начало и Конец — инструмент, который позволяет объединить последовательность действий в одну операцию. Работает так: запускаем Отменить и выбираем опцию Начало. Затем возвращаемся к черчению — совершаем последовательность необходимых действий — создание, редактирование объектов и прочие. После этого запускаем команду Отменить и выбираем опцию Конец. Система запомнит это состояние и объединит команды, выполненные в промежуток времени между вводом Начало и Конец, в один блок. В этом случае команда Отмена отменит всю группу операций. Удобно пользоваться этим инструментом с том случае, когда при работе над проектом вам необходимо провести какое-то исследование, попробовать реализовать какую-то идею, но при этом вы хотите быть уверены в сохранности уже существующих наработок. Вы просто вводите Начало перед выполнением эксперимента и Конец при его завершении. Если работа приведет к нужному результату, то ее можно сохранить, если нет — то одна операция отмены удалит все бесполезные действия и вернет чертеж в исходное состояние.
  • Метка и Обратно. В процессе работы над проектом можно запустить команду Отменить с опцией Метка — система создаст метку отмены. Теперь при запуске Отменить с опцией Обратно отменятся все операции до первой обнаруженной метки. Можно установить неограниченное число меток, в этом случае каждое выполнение Обратно будет отменять последовательно все операции до меток. Весьма удобно использовать в случае проведения исследований, поиска конструкторских решений и пр., когда можно легко вернуть чертеж в исходное состояние.

Опция Управление позволяет настроить команду Отменить:

003

  • Все — включены все возможности команды отменить.
  • Ничего — отключение всех команд отмены в AutoCAD. В этом случае отменить нельзя и ни одна из перечисленных команд не будет доступна.
  • Одну — устанавливается ограничение на отмену одной команды. Т.е. система запоминает только одно действие.
  • Объединить — объединение нескольких последовательных команд зумирования и панорамирования в одну операцию для отмены или повтора.
  • Слой — определяет, будут ли операции в диалоговом окне слоя объединяться в виде отдельной операции отмены.

Отображение имени слоя в атрибуте блока

26 Wednesday Nov 2014

Posted by danglar71 in Tips (Russian)

≈ Leave a comment

Допустим, вы чертите электрическую схему, в которой множество точек подключения питания, при этом значений питающих напряжений несколько. Если чертить обычными блоками с фиксированными значениями величины питающего напряжения, то при смене значения питания придется исправлять каждый блок. Всего этого можно избежать простым способом: создать слои с именами, совпадающими с названием цепей питания, и вставлять точки подключения питания в тот слой, в который нужно. В этом случае при изменении имени слоя переименуются и все точки питания — нет необходимости ручной замены названий.

Другой пример использования. При расстановке оборудования в помещениях на плане вы можете создать слои, совпадающие с названиями этих помещений. Тогда, если в блоках оборудования будут поля с именем слоя, то можно очень просто получить отчеты с помощью инструмента извлечения данных из чертежа, в которых кроме всего прочего будет поле, отображающее расположение всего оборудования.

Процесс создания блока очень простой:

  • Строим графическую часть блока — штыревой контакт

001

  • Создаем блок. При создании не забываем включить опцию Открыть в редакторе блоков, поскольку нужный нам атрибут можно добавить только в нем

002

  • В редакторе блоков запускаем команду Определение атрибута

002_1

  • Устанавливаем параметры атрибута — Контролируемый, Тег — Питание и нажимаем кнопку Добавление поля

003

  • В списке Имена полей ищем Местозаполнительблока, в Свойствах — Слой, в Формате — Верхний регистр

004

  • Располагаем атрибут в нужном месте и выходим из редактора блоков

004_1

Блок готов! можно приступить к созданию схемы

  • Создаем список слоев с именами, совпадающими со списком цепей питания

005

  • Выбираем нужный слой и вставляем блок. При вставке система выдаст запрос об определении атрибута

006

Получаем нужную схему

006_1

Теперь поменяем имя слоя с +3.3В на +3.8В

007Атрибуты блоков обновятся (не забудьте запустить команду РЕГЕН)

008

Этот простой, но очень эффективный способ автоматизации обязательно пригодится в повседневной работе проектировщиков.

Использование мультилиний в AutoCAD

26 Wednesday Nov 2014

Posted by danglar71 in Tips (Russian)

≈ Leave a comment

Мультилиния — один из старейших инструментов в AutoCAD, который позволяет упростить работу. К сожалению, сами разработчики этот инструмент «запрятали» далеко и не все знают о его существовании.

Мультилиния — это набор параллельных линий, создающихся одновременно с помощью одной команды. Количество линий, входящих в одну мультилинию, может варьироваться от 2 до 16. С помощью мультилиний удобно рисовать планы помещений, трубопроводы, автодороги и прочие.

Команда создания мультилинии – МЛИНИЯ (_MLINE). Процесс создания ничем не отличается от создания отрезков, также есть опции Отмена и Замкнуть

000

У самой команды доступны опции:

  • Расположение — управляет точкой привязки мультилинии — Верх, Центр или Низ
  • Масштаб — задает масштаб мультилинии относительно исходного, заданного в стиле
  • Стиль — задает стиль мультилинии. Стиль Standart установлен по-умолчанию и состоит из двух сплошных линий с расстоянием 1 между собой

000_1

Видом мультилинии управляет стиль мультилинии. Диспетчер стилей мультилиний запускается командой МЛСТИЛЬ (_MLSTYLE). В стиле мультилинии можно задать следующие свойства:

003

  • Элементы. В этой области мы задаем линии, из которых будет состоять мультилиния. У каждой линии есть параметр Смещение — он определяет смещение линии от центральной оси мультилинии, Цвет и Тип линий.
  • Торцы. Для обработки торцов мультилиний можно выбрать нужный способ, например Отрезок, тогда все мультилинии будут замкнуты отрезками на концах
  • Заливка — позволяет установить цвет заливки внутренней части мультилинии
  • Показать стыки — позволяет прорисовать отрезки на изгибах мультилинии

Есть две особенности при работе со стилями мультилиний: нельзя поменять стиль у уже нарисованной мультилинии и нельзя изменить стиль, если он используется хотя бы в одной мультилинии  на чертеже.

Для нанесенных на чертеж мультилиний доступна команда редактирования МЛРЕД (_MLEDIT), также ее можно вызвать по двойному щелчку на мультилинии. С помощью нее можно легко обработать пересечения мультилиний, добавить вершины, обрезать часть линий из состава

004

Рассмотрим использование мультилинии на двух примерах — построение плана помещения и построение автомобильной дороги.

План помещения

  • Создаем два стиля мультилинии OUT и IN. Для стиля OUT задаем расстояние между двумя линиями равным 20, т.е. задаем смещение первой линии 10 от центра, второй минус 10 от центра — в сумме получаем 20

005

Для стиля IN задаем расстояние между линиями равным 10 (по 5 на каждую сторону)

  • Мультилинией со стилем Out создаём внешний контур стен и несущие перегородки, стилем IN — внутренние стены

002

  • Обработаем пересечения мультилиний. Дважды щелкаем на одну из мультилиний, выбираем инструмент Открытое Т, выбираем первую мультилинию (в нашем случае вертикальную) и вторую. Получаем обработанное пересечение

006

Также обрабатываем остальные пересечения. получаем нужный нам план помещения

001

Для отсечения части мультилинии с целью получения проемов воспользуемся инструментом редактирования Обрезать все — необходимо указать две точки на мультилинии, обрежется все, что между ними

007

Автомобильная дорога

  • Создадим два стиля. В первом создадим двухполосную дорогу с тремя линиями — одна штриховая по центру (смещение 0) и две сплошные со смещением 1

008

Во втором — опишем четырехполосную дорогу, состоящую из шести линий: две сплошные со смещением 0,5, две штриховые со смещением 2,5 и две сплошные со смещением 4,5.

  • Рисуем дороги с использованием того и другого стиля

009

  • Также можем обработать перекрестки и примыкания, например инструментом Открытый крест

010

Удобно? Очень! Заметная экономия времени и простота создания.

Подрезка изображения по окружности в AutoCAD

26 Wednesday Nov 2014

Posted by danglar71 in Tips (Russian)

≈ Leave a comment

Использование растровых изображений в чертежах AutoCAD очень распространенная практика. Изображения могут использоваться в качестве подложек, иллюстраций, подоснов чертежей и пр.

Вставленное в чертеж изображение часто необходимо подрезать, чтобы вписать в существующую геометрию. Стандартное средство AutoCAD — команда ПОДРЕЗКА (_XCLIP) — позволяет в качестве контура подрезки выбрать полилинию, многоугольный произвольный контур и прямоугольный

001

Результат выполнения подрезки многоугольником и прямоугольником

002

А как сделать подрезку по окружности? Очевидно, сделать это можно с помощью полилинии. Есть два способа: 1. создать окружность из полилинии; 2. создать правильный многоугольник. Нарисовать просто окружность из двух дуговых сегментов полилинии не получится — такой примитив не может быть контуром для подрезки.

Округлая полилиния

1. Рисуем прямоугольник нужных размеров (напомню, что команда Прямоугольник создаю полилинию специального вида)

003

2. Запускаем команду редактирования полилиний ПОЛРЕД (_PEDIT), выбираем наш прямоугольник и выбираем опцию Сплайн

004

3. Получаем округлый сплайн

005

4. В качестве опции команды ПОДРЕЗКА (_XCLIP) выбираем полученный сплайн и готово!

008

Правильный многоугольник

1. Строим МНОГОУГОЛЬНИК (_POLYGON) с большим количеством сторон. Сколько необходимо сторон? Вопрос решается в каждом конкретном случае — необходимо, чтобы многоугольник внешне был похож на окружность. Не стоит злоупотреблять — в большинстве случаев 50-60 сторон вполне достаточно.

006

2. Как и в предыдущем способе в качестве контура подрезки выбираем полилинию и указываем наш многоугольник

007Готово!

← Older posts

Recent Posts

  • Это наша плата за трусость
  • Set the Default Application to open DWG Files
  • Draw “Heat Grid” (Lee Mac)
  • PROGRAM FOR SPRINKLER DISTRIBUTION
  • How to remove Frames around blocks

Recent Comments

Wilmer Lacayo on Draw Centroid (center of gravi…
Jun on Convert Polylines to Leaders i…
Adel on HVAC Draw Branch Duct
danglar71 on Draw “Heat Grid” (…
IOAN VLAD on Draw “Heat Grid” (…

Archives

  • January 2021
  • March 2020
  • February 2020
  • January 2020
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • February 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014

Categories

  • 3D
  • Annonymous Blocks
  • Attribute
  • Batch
  • Blocks
  • Books
  • Common
  • Coordinates
  • Counting
  • dimmensions
  • draw
  • Export
  • Fractal
  • Hatch
  • HVAC
  • Images
  • Import
  • Info
  • Isometric
  • Layers
  • Layouts
  • Lisp Collection 2014
  • Mline
  • Pdf
  • Pipes
  • plot
  • Points
  • Protect
  • Text
  • Tips (English)
  • Tips (Russian)
  • ucs
  • Utilites
  • view
  • Vport
  • Xref

Recent Posts

  • Это наша плата за трусость
  • Set the Default Application to open DWG Files
  • Draw “Heat Grid” (Lee Mac)
  • PROGRAM FOR SPRINKLER DISTRIBUTION
  • How to remove Frames around blocks

Recent Comments

Wilmer Lacayo on Draw Centroid (center of gravi…
Jun on Convert Polylines to Leaders i…
Adel on HVAC Draw Branch Duct
danglar71 on Draw “Heat Grid” (…
IOAN VLAD on Draw “Heat Grid” (…

Archives

  • January 2021
  • March 2020
  • February 2020
  • January 2020
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • February 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014

Categories

  • 3D
  • Annonymous Blocks
  • Attribute
  • Batch
  • Blocks
  • Books
  • Common
  • Coordinates
  • Counting
  • dimmensions
  • draw
  • Export
  • Fractal
  • Hatch
  • HVAC
  • Images
  • Import
  • Info
  • Isometric
  • Layers
  • Layouts
  • Lisp Collection 2014
  • Mline
  • Pdf
  • Pipes
  • plot
  • Points
  • Protect
  • Text
  • Tips (English)
  • Tips (Russian)
  • ucs
  • Utilites
  • view
  • Vport
  • Xref

Create a free website or blog at WordPress.com.

Cancel
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy