Градиент с помощью лиспа
| Правила | Регистрация | Пользователи | Сообщения за день |  Справка по форуму | Файлообменник |

Вернуться   Форум DWG.RU > Программное обеспечение > Программирование > LISP > Градиент с помощью лиспа

Градиент с помощью лиспа

Ответ
Поиск в этой теме
Непрочитано 15.01.2007, 12:39 #1
Градиент с помощью лиспа
mental
 
Регистрация: 26.12.2006
Сообщений: 12

Подскажите пожалуйста как залить некоторую замкнутую область градиентом.
Вот, например, чтобы её заштриховать используется команда
(command "_.bhatch" point "_p" "ansi32" "0.5" "0" "")
где point это внутреняя точка контура, а остальные значение параметры штриховки.
Как аналогичным образом залить контур градиентом?
Начало я знаю
(command "_.gradient" ...
а вот что дальше?
Просмотров: 2435
 
Автор темы   Непрочитано 15.01.2007, 14:44
#2
mental


 
Регистрация: 26.12.2006
Сообщений: 12


Неужели никто не знает?!
mental вне форума  
 
Непрочитано 15.01.2007, 15:00
#3
Profan


 
Регистрация: 25.12.2005
Москва
Сообщений: 13,627


Команда "_GRADIENT" ("ГРАДИЕНТ") не имеет опций командной строки.
Profan вне форума  
 
Непрочитано 15.01.2007, 15:02
#4
Кулик Алексей aka kpblc
Moderator

LISP, C# (ACAD 200[9,12,13,14])
 
Регистрация: 25.08.2003
С.-Петербург
Сообщений: 40,405


1. Команды _gradient ADT 2005 не знает.
2. Отсюда:
Цитата:
<...>Задавая вопрос, предоставляйте максимум информации, относящейся к теме. Покажите, что Вы нашли по теме, что - нет. Признание, что Вы, возможно, искали не то или не так, не страшно. Страшно показать, что Вы вообще ничего не искали. После 2-3 попыток получить все "на блюдечке с голубой каемочкой" Вас станут игнорировать.
Добавлено: Обязательно указывайте версию ПО, с которой Вы работаете.<...>
3.
Цитата:
Сообщение от F1 wrotes:
The following group codes apply to hatch and MPolygon entities. In addition to the group codes described here, see Common Group Codes for Entities. For information about abbreviations and formatting used in this table, see Formatting Conventions in This Reference. Hatch group codes
Group code Description
100 Subclass marker (AcDbHatch)
10 Elevation point (in OCS) DXF: X value = 0; APP: 3D point (X and Y always equal 0, Z represents the elevation)
20, 30 DXF: Y and Z values of elevation point (in OCS) Y value = 0, Z represents the elevation
210 Extrusion direction (optional; default = 0, 0, 1)
DXF: X value; APP: 3D vector
220, 230 DXF: Y and Z values of extrusion direction
2 Hatch pattern name
70 Solid fill flag (solid fill = 1; pattern fill = 0); for MPolygon, the version of MPolygon
63 For MPolygon, pattern fill color as the ACI
71 Associativity flag (associative = 1; non-associative = 0); for MPolygon, solid-fill flag (has solid fill = 1; lacks solid fill = 0)
91 Number of boundary paths (loops) varies Boundary path data. Repeats number of times specified by code 91. See Boundary Path Data
75 Hatch style:
0 = Hatch "odd parity" area (Normal style)
1 = Hatch outermost area only (Outer style)
2 = Hatch through entire area (Ignore style)
76 Hatch pattern type: 0 = User-defined; 1 = Predefined; 2 = Custom
52 Hatch pattern angle (pattern fill only)
41 Hatch pattern scale or spacing (pattern fill only)
73 For MPolygon, boundary annotation flag (boundary is an annotated boundary = 1; boundary is not an annotated boundary = 0)
77 Hatch pattern double flag (pattern fill only): 0 = not double; 1 = double
78 Number of pattern definition lines varies Pattern line data. Repeats number of times specified by code 78. See Pattern Data
47 Pixel size used to determine the density to perform various intersection and ray casting operations in hatch pattern computation for associative hatches and hatches created with the Flood method of hatching
98 Number of seed points
11 For MPolygon, offset vector
99 For MPolygon, number of degenerate boundary paths (loops), where a degenerate boundary path is a border that is ignored by the hatch
10 Seed point (in OCS) DXF: X value; APP: 2D point (multiple entries)
20 DXF: Y value of seed point (in OCS); (multiple entries)
450 Indicates solid hatch or gradient; if solid hatch, the values for the remaining codes are ignored but must be present. Optional; if code 450 is in the file, then the following codes must be in the file: 451, 452, 453, 460, 461, 462, and 470. If code 450 is not in the file, then the following codes must not be in the file: 451, 452, 453, 460, 461, 462, and 470
0 = Solid hatch
1 = Gradient
451 Zero is reserved for future use
452 Records how colors were defined and is used only by dialog code: 0 = Two-color gradient 1 = Single-color gradient
453 Number of colors:0 = Solid hatch 2 = Gradient
460 Rotation angle in radians for gradients (default = 0, 0)
461 Gradient definition; corresponds to the Centered option on the Gradient Tab of the Boundary Hatch and Fill dialog box. Each gradient has two definitions, shifted and unshifted. A Shift value describes the blend of the two definitions that should be used. A value of 0.0 means only the unshifted version should be used, and a value of 1.0 means that only the shifted version should be used.

462 Color tint value used by dialog code (default = 0, 0; range is 0.0 to 1.0). The color tint value is a gradient color and controls the degree of tint in the dialog when the Hatch group code 452 is set to 1.
463 Reserved for future use: 0 = First value 1 = Second value
470 String (default = LINEAR)
--------------------------------------------------------------------------------
Topics in this section:
Boundary Path Data
Pattern Data
P.S. Терпение есть признак добродетели
__________________
Моя библиотека lisp-функций
---
Обращение ко мне - на "ты".
Все, что сказано - личное мнение.
Кулик Алексей aka kpblc вне форума  
 
Автор темы   Непрочитано 16.01.2007, 07:51
#5
mental


 
Регистрация: 26.12.2006
Сообщений: 12


Цитата:
Сообщение от Кулик Алексей aka kpblc
Цитата:
<...>Задавая вопрос...
Долго искал в поисковиках, ничего полезного не нашёл, т.к. пытался найти как выполнить _gradient через командную строку, которой как оказалось нет. Поэтому не надо мне намекать на то что я хочу всё "на блюдечке с голубой каёмочкой".
Цитата:
3.
Цитата:
Сообщение от F1 wrotes:
The following group codes apply to hatch...
За помощь спасибо. Сейчас попробую реализовать.
mental вне форума  
Ответ
Вернуться   Форум DWG.RU > Программное обеспечение > Программирование > LISP > Градиент с помощью лиспа