Sketchup создание динамических компонентов
Динамические компоненты SketchUp — это многократно используемые элементы дизайна со специальными атрибутами: параметрическими функциями, интерактивностью, анимацией и т. д. Создание собственных динамических компонентов позволяет создавать библиотеку пользовательских проектов и легко делиться ими с другими.
Как сделать что-то, не являющееся компонентом в SketchUp?
Как отменить связь или разгруппировать компонент? Спасибо! Щелкните правой кнопкой мыши > Сделать уникальным, чтобы сохранить его как компонент. Щелкните правой кнопкой мыши > Взорваться не будет.
Testing a dynamic component
After you define the attributes and values for a dynamic component, test how it works in the Component Options window, which you can open in any of the following ways:
- Click the Component Options tool () on the Dynamic Components toolbar.
- Select Window > Component Options.
- Context-click the component and select Dynamic Components > Component Options.
In the following figure, you see that each attribute appears in a drop-down list. Select an option and click Apply to change the component’s color.
Приветствую Вас, поклонники программы SketchUp.
Было высказано пожелание о создании раздела по Динамическим компонентам, поддерживаю данное предложение в целях развития возможностей программы SketchUp по мебельному направлению.
Каковы функции SketchUp?
SketchUp — это компьютерная программа 3D-моделирования для широкого спектра приложений для рисования, таких как архитектура, дизайн интерьера, ландшафтная архитектура, гражданское строительство и машиностроение, дизайн фильмов и видеоигр.
Что такое динамические угловые компоненты?
Что такое динамические компоненты. Динамический означает, что расположение компонентов в приложении не определено во время сборки. Это означает, что он не используется ни в одном угловом шаблоне. Вместо этого компонент создается и помещается в приложение во время выполнения.
Видео
Часть 1 Часть 2 Часть 3
Часть 4 Часть 5 Часть 6
Часть 7 Часть 8 Часть 9
Часть 10
Adding attributes
Attributes make components dynamic by telling SketchUp what to do. You can choose from predefined attributes or create custom attributes:
- Predefined attributes enable you to quickly and easily set up dynamic behaviors for common features, such as constraining a dynamic component’s size or applying a material. You can browse predefined attributes in the Component Attributes dialog box, or check out the Dynamic Component predefined attributes reference.
- Custom attributes enable you to add your own attributes.
To add attributes, follow these steps:
- Select the component you want to make dynamic.
- On the Dynamic Components toolbar, click the Component Attributes tool () or select Window > Component Attributes. Either way, the Component Attributes dialog box opens, as shown in the following figure. In this example, the Component Attributes dialog box shows the DynamicCylinder component.
Tip: An attribute’s name must start with a letter and cannot contain any spaces. Otherwise, you can name the attribute anything you want. Choosing a name that reminds you what the attribute does is helpful.
Note: If you need to rename a custom attribute, double-click its name and type a new one. (You can change the names of custom attributes only, not a predefined attribute.) If you need to delete an attribute, just click the Delete Attribute minus sign icon next to the attribute’s name.
In this example, you see the Material attribute added to the DynamicCylinder component.
Обратите внимание на полезные ответы в этой теме!
Спасибо GARI за создание новой темы о Динамических компонентах. И сразу в бой…
Начну с самого простого: вот два варианта компонента "Плита", у каждого свои достоинства и недостатки.
Вариант 1 : самый простой – просто Параллелепипед, Динамический конечно т.е можно изменять размеры вводя параметры или применяя Scale. Преимущества : простота, прекрасное текстурирование (и соответственно визуализация). Недостатки: отсутствуют присадочные места под шканты и конфирматы,не достаточная наглядность, невозможность на его основе создать чертеж (вернее он будет не точным).
Вариант 2: компонент состоит аж из 9 групп и тоже Динамический. . Преимущества : Наглядность, возможность не меняя компонент создания сборочной схемы и чертежа с размерами для производства. Недостатки: относительная сложность, дефекты текстурирования.Ниже видео работы 2-го варианта.
что бы вы выбрали ?
Ссылка на сервисе
а может присадку показывать схематично в виде закрашенных чёрным цветом кругов нужного диаметра ? нормальная текстура нужна !
По наглядности и информативности второй вариант предпочтительней.Текстура в чертежах и схемах сборки не нужна.
P/S Очень нужная и полезная темаСпасибо!
По наглядности и информативности второй вариант предпочтительней.Текстура в чертежах и схемах сборки не нужна.
P/S Очень нужная и полезная темаСпасибо!
Помимо сборочных чертежей SketchUP можно использовать и для визуализации проекта, удобнее всё делать в одной программе
а может присадку показывать схематично в виде закрашенных чёрным цветом кругов нужного диаметра ? нормальная текстура нужна !
Снова дилема…
Вариант 1 : Полностью настраиваемый компонент, который несет в себе практически все элементы (стенки, царги, конформаты, шканты, кромки (можно выбрать из списка), ножки (можно выбрать из списка), ручки (можно выбрать из каталога), фасады (можно выбрать из каталога) и т.д.
Преимущества: Быстрая настройка, полки стоят точно по размерам без дополнительных настроек. Т.к. все элементы несет в себе то сам же их и может посчитать ( м.кв. плиты, м/п кромки, кол-во конфирматов, шкантов, петли, ручки, ножки и т.д. цены уже проставлены (при первой настройке) или можно поменять, стоимости , общий итог. (хотя CutList никто не отменял).
Недостатки : Можно добавить новый элемент (например полку), но возникнет проблема с его учетом. Вернее частичная проблема – я могу прописать алгоритм учета добавленных материалов и он их посчитает, но если этот добавленный элемент будет удален, то его материалы могут остаться (вот тут пока четкого понимания алгоритма у меня пока нет, только идеи…) На видео цен и стоимости пока нет , но я могу добавить.
Ссылка на сервисе
Вариант 2: «Пустой» компонент, внутри ничего, но можно все добавить из каталога.
Преимущества: Все доп. элементы ставятся из каталога.
Недостатки : При добавлении ,например полки, требуется доп. присадка по высоте (за стенку она «цепляется» сама и ширину выбирает автоматом). «Внутри» себя ничего не считает. Все передает в CutList.
Ссылка на сервисе
Приветствую Вас, поклонники программы SketchUp.
Было высказано пожелание о создании раздела по Динамическим компонентам, поддерживаю данное предложение в целях развития возможностей программы SketchUp по мебельному направлению.
Что означает сделать уникальным в SketchUp?
Делая экземпляр уникальным, вы фактически создаете новый компонент на основе вашего оригинала. Откройте контекст для уникального компонента. … Или выберите его, контекстно щелкните выделение и выберите «Редактировать компонент». Используйте инструменты рисования SketchUp, чтобы внести изменения в компонент.
To create a dynamic component, you add attributes to a basic component and then create values for those attributes.
For simple dynamic components, the process is easier than you might think, especially if you start with SketchUp’s predefined attributes and are familiar with SketchUp’s basic drawing tools and spreadsheet programs’ common functions. You don’t need to be a computer programmer, a math genius, or a benevolent wizard.
PRO You do need a SketchUp Pro license. You can insert dynamic components into SketchUp Make or SketchUp Pro, but developing dynamic components is available only to SketchUp Pro users.
Tip: As you add attributes and subcomponents to a dynamic component, the setup becomes more complex. It’s normal to have bugs that you need to find and fix before the dynamic component works the way that you envision. Hang in there, and you’ll get the hang of dynamic component development. Although it isn’t nearly as difficult as cloning a sheep or reverse-engineering an evil hex on your home’s sewer pipes, developing your own dynamic component is among the most difficult tasks in SketchUp.
So what does that process look like? Here’s an overview of the steps:
- Create a new component that’s made entirely of groups or subcomponents. Creating a Basic Component explains how to turn selected geometry into a component. Organizing a Model gives you the lowdown on groups and nesting groups and components in hierarchies.
- Add attributes that make your component dynamic (that is, tell the component to do something). You can choose from predefined attributes or create custom attributes.
- For each attribute you add, define a value that tells the attribute how to take action. These values can be a simple number that constrains a component’s size, a formula that uses mathematical operators, or a function that iterates through several options that you define in the formula’s parameters.
- Test your dynamic component to make sure it works correctly. As mentioned earlier, you’ll probably go back to Step 1 or 2 a few times before the dynamic component works the way you hope.
- Save the component in a separate file that you can import into other models via the Components browser or share with others via the 3D Warehouse. For the component to work, make sure you context-click the highest level of the component and select Save As from the menu that appears. Then save the resulting .skp file in a component collection.
In the video, you can see these steps in action. In the sections that follow, you find details and tips for working through the preceding steps.
Table of Contents
Видео
Часть 1 Часть 2 Часть 3
Часть 4 Часть 5 Часть 6
Часть 7 Часть 8 Часть 9
Часть 10
Adding attributes
Attributes make components dynamic by telling SketchUp what to do. You can choose from predefined attributes or create custom attributes:
- Predefined attributes enable you to quickly and easily set up dynamic behaviors for common features, such as constraining a dynamic component’s size or applying a material. You can browse predefined attributes in the Component Attributes dialog box, or check out the Dynamic Component predefined attributes reference.
- Custom attributes enable you to add your own attributes.
To add attributes, follow these steps:
- Select the component you want to make dynamic.
- On the Dynamic Components toolbar, click the Component Attributes tool () or select Window > Component Attributes. Either way, the Component Attributes dialog box opens, as shown in the following figure. In this example, the Component Attributes dialog box shows the DynamicCylinder component.
Tip: An attribute’s name must start with a letter and cannot contain any spaces. Otherwise, you can name the attribute anything you want. Choosing a name that reminds you what the attribute does is helpful.
Note: If you need to rename a custom attribute, double-click its name and type a new one. (You can change the names of custom attributes only, not a predefined attribute.) If you need to delete an attribute, just click the Delete Attribute minus sign icon next to the attribute’s name.
In this example, you see the Material attribute added to the DynamicCylinder component.
Testing a dynamic component
After you define the attributes and values for a dynamic component, test how it works in the Component Options window, which you can open in any of the following ways:
- Click the Component Options tool () on the Dynamic Components toolbar.
- Select Window > Component Options.
- Context-click the component and select Dynamic Components > Component Options.
In the following figure, you see that each attribute appears in a drop-down list. Select an option and click Apply to change the component’s color.
To create a dynamic component, you add attributes to a basic component and then create values for those attributes.
For simple dynamic components, the process is easier than you might think, especially if you start with SketchUp’s predefined attributes and are familiar with SketchUp’s basic drawing tools and spreadsheet programs’ common functions. You don’t need to be a computer programmer, a math genius, or a benevolent wizard.
PRO You do need a SketchUp Pro license. You can insert dynamic components into SketchUp Make or SketchUp Pro, but developing dynamic components is available only to SketchUp Pro users.
Tip: As you add attributes and subcomponents to a dynamic component, the setup becomes more complex. It’s normal to have bugs that you need to find and fix before the dynamic component works the way that you envision. Hang in there, and you’ll get the hang of dynamic component development. Although it isn’t nearly as difficult as cloning a sheep or reverse-engineering an evil hex on your home’s sewer pipes, developing your own dynamic component is among the most difficult tasks in SketchUp.
So what does that process look like? Here’s an overview of the steps:
- Create a new component that’s made entirely of groups or subcomponents. Creating a Basic Component explains how to turn selected geometry into a component. Organizing a Model gives you the lowdown on groups and nesting groups and components in hierarchies.
- Add attributes that make your component dynamic (that is, tell the component to do something). You can choose from predefined attributes or create custom attributes.
- For each attribute you add, define a value that tells the attribute how to take action. These values can be a simple number that constrains a component’s size, a formula that uses mathematical operators, or a function that iterates through several options that you define in the formula’s parameters.
- Test your dynamic component to make sure it works correctly. As mentioned earlier, you’ll probably go back to Step 1 or 2 a few times before the dynamic component works the way you hope.
- Save the component in a separate file that you can import into other models via the Components browser or share with others via the 3D Warehouse. For the component to work, make sure you context-click the highest level of the component and select Save As from the menu that appears. Then save the resulting .skp file in a component collection.
In the video, you can see these steps in action. In the sections that follow, you find details and tips for working through the preceding steps.
Table of Contents
Befriending all the axes
- Every component and subcomponent has its own axis origin point. If you use attributes to set the dimensions of, position, or move a dynamic component, the values you enter are relative to the component’s axis origin. If you position more than one subcomponent, each one will have a different axis origin. So know the whereabouts of each component’s axes origin, and reposition it if needed.
- The axes’ colors become letters. Everywhere in SketchUp, you see references to the red, green, and blue axes — except in the Component Attributes dialog box. Here, the red axis is X, the green axis is Y, and the blue axis is Z. For example, the LenX attribute defines the length of the X, or red, axis.
- Gluing and cutting planes can turn the axis origin sideways. When you create a component, you can set both gluing and cutting planes. When a component glues to only vertical surfaces, the blue (Z) and green (Y) axes are swapped: LenZ has a length value for the green axis, and LenY ’s value is what’s typically the blue axis. For example, if you want to constrain a gluing component that glues to vertical surfaces, such as window, to a specific height, your formula needs to constrain LenY , not LenZ . If your component has a cutting plane, remember that to create that cutting plane on a vertical face, you had to move the axes, because the red/green plane determines the cutting plane.
Tip: As you develop a dynamic component, you may need to reset a component’s axis origin point by relocating the axes. To do so, context-click the component and select Change Axes, which activates an Axes tool cursor for the component. Adjusting the Drawing Axes explains how to use this cursor.
Defining attribute values
After you set up an attribute or three, you’re ready to enter values that tell the attributes what to do. You can complete this step in a myriad ways, depending on the attributes you choose.
Generally speaking, you can define attribute values in the following ways:
-
Type in the attribute value text box. For example, add a Description attribute and type a description directly in the value text box. (See Callout 1 in the following figure.) If you’re defining formulas, type an equal sign (=) and then enter your formula.
Tip: If you want to see the complete formulas in the attribute value box, click the Toggle Formula View button in the upper right of the Component Attributes dialog box. If you manipulate a component with a SketchUp tool while the Component Attributes dialog box is open, click the Refresh button to refresh values in the Component Attributes dialog box.
When you create formulas, here are the rules you need to follow:
- Put text in quotes.
- Concatenate a string with the ampersand ( & ). For example: ="I am a table with the cost of" & variable name
- To display quotes in a text string, use a backslash ( \ ). For example: ="This is the "\official\" retail price for this item:" & variable name
- Formulas that return numbers will return them as floating values, never as integers. So, the formula if(5=5,1,0) will return 1.0 instead of 1 .
- All lengths are in inches and angles in degrees.
- Use an exclamation point ( ! ) to refer to a value outside of the current subcomponent. For example, Fence!spacing refers to the value of the spacing variable in the Fence component.
Tip: This overview of the basic options can help you connect the features in the Component Attributes dialog box to the attribute, function, and operator references. These references contain the building blocks for adding dynamic features to components, as you see in the dynamic component examples.
Befriending all the axes
- Every component and subcomponent has its own axis origin point. If you use attributes to set the dimensions of, position, or move a dynamic component, the values you enter are relative to the component’s axis origin. If you position more than one subcomponent, each one will have a different axis origin. So know the whereabouts of each component’s axes origin, and reposition it if needed.
- The axes’ colors become letters. Everywhere in SketchUp, you see references to the red, green, and blue axes — except in the Component Attributes dialog box. Here, the red axis is X, the green axis is Y, and the blue axis is Z. For example, the LenX attribute defines the length of the X, or red, axis.
- Gluing and cutting planes can turn the axis origin sideways. When you create a component, you can set both gluing and cutting planes. When a component glues to only vertical surfaces, the blue (Z) and green (Y) axes are swapped: LenZ has a length value for the green axis, and LenY ’s value is what’s typically the blue axis. For example, if you want to constrain a gluing component that glues to vertical surfaces, such as window, to a specific height, your formula needs to constrain LenY , not LenZ . If your component has a cutting plane, remember that to create that cutting plane on a vertical face, you had to move the axes, because the red/green plane determines the cutting plane.
Tip: As you develop a dynamic component, you may need to reset a component’s axis origin point by relocating the axes. To do so, context-click the component and select Change Axes, which activates an Axes tool cursor for the component. Adjusting the Drawing Axes explains how to use this cursor.
Как создать динамический компонент?
Создание динамического компонента
- Создайте новый компонент, полностью состоящий из групп или подкомпонентов. …
- Добавьте атрибуты, которые сделают ваш компонент динамическим (то есть скажите компоненту что-то сделать). …
- Для каждого добавляемого атрибута определите значение, которое сообщает атрибуту, как действовать. …
- Протестируйте динамический компонент, чтобы убедиться, что он работает правильно.
Что такое компонент в SketchUp?
Организация компонентов в модели SketchUp сильно влияет на скорость, с которой может выполняться работа по проектированию и моделированию. По определению группа — это отдельный экземпляр набора геометрии. Компонент — это именованная коллекция геометрии, которая может существовать в нескольких местах модели.
Defining attribute values
After you set up an attribute or three, you’re ready to enter values that tell the attributes what to do. You can complete this step in a myriad ways, depending on the attributes you choose.
Generally speaking, you can define attribute values in the following ways:
-
Type in the attribute value text box. For example, add a Description attribute and type a description directly in the value text box. (See Callout 1 in the following figure.) If you’re defining formulas, type an equal sign (=) and then enter your formula.
Tip: If you want to see the complete formulas in the attribute value box, click the Toggle Formula View button in the upper right of the Component Attributes dialog box. If you manipulate a component with a SketchUp tool while the Component Attributes dialog box is open, click the Refresh button to refresh values in the Component Attributes dialog box.
When you create formulas, here are the rules you need to follow:
- Put text in quotes.
- Concatenate a string with the ampersand ( & ). For example: ="I am a table with the cost of" & variable name
- To display quotes in a text string, use a backslash ( \ ). For example: ="This is the "\official\" retail price for this item:" & variable name
- Formulas that return numbers will return them as floating values, never as integers. So, the formula if(5=5,1,0) will return 1.0 instead of 1 .
- All lengths are in inches and angles in degrees.
- Use an exclamation point ( ! ) to refer to a value outside of the current subcomponent. For example, Fence!spacing refers to the value of the spacing variable in the Fence component.
Tip: This overview of the basic options can help you connect the features in the Component Attributes dialog box to the attribute, function, and operator references. These references contain the building blocks for adding dynamic features to components, as you see in the dynamic component examples.
В чем разница между компонентом и группой в SketchUp?
Группы используются для наборов объектов, которые вы никогда не будете дублировать или копировать. Компоненты используются для наборов объектов, которые вы будете многократно дублировать или использовать в модели.
Что делает вывод в Sketchup?
Система логического вывода — это, по сути, система, которая блокирует ваш курсор относительно любой точки, края, оси, грани, направляющей или воображаемой линии. Когда вы рисуете в Sketchup и хотите добавить линию из существующей точки в вашей модели, вы наводите указатель мыши на эту точку.
Как использовать компоненты в SketchUp?
Следуй этим шагам:
- Откройте модель, в которую вы хотите импортировать файл SketchUp.
- Выберите «Файл» > «Импорт».
- В появившемся диалоговом окне «Открыть» перейдите к файлу SketchUp. …
- Выберите файл SketchUp и нажмите «Открыть». …
- Щелкните в области рисования, чтобы поместить компонент в модель.
Обратите внимание на полезные ответы в этой теме!
Спасибо GARI за создание новой темы о Динамических компонентах. И сразу в бой…
Начну с самого простого: вот два варианта компонента "Плита", у каждого свои достоинства и недостатки.
Вариант 1 : самый простой – просто Параллелепипед, Динамический конечно т.е можно изменять размеры вводя параметры или применяя Scale. Преимущества : простота, прекрасное текстурирование (и соответственно визуализация). Недостатки: отсутствуют присадочные места под шканты и конфирматы,не достаточная наглядность, невозможность на его основе создать чертеж (вернее он будет не точным).
Вариант 2: компонент состоит аж из 9 групп и тоже Динамический. . Преимущества : Наглядность, возможность не меняя компонент создания сборочной схемы и чертежа с размерами для производства. Недостатки: относительная сложность, дефекты текстурирования.Ниже видео работы 2-го варианта.
что бы вы выбрали ?
Ссылка на сервисе
а может присадку показывать схематично в виде закрашенных чёрным цветом кругов нужного диаметра ? нормальная текстура нужна !
По наглядности и информативности второй вариант предпочтительней.Текстура в чертежах и схемах сборки не нужна.
P/S Очень нужная и полезная темаСпасибо!
По наглядности и информативности второй вариант предпочтительней.Текстура в чертежах и схемах сборки не нужна.
P/S Очень нужная и полезная темаСпасибо!
Помимо сборочных чертежей SketchUP можно использовать и для визуализации проекта, удобнее всё делать в одной программе
а может присадку показывать схематично в виде закрашенных чёрным цветом кругов нужного диаметра ? нормальная текстура нужна !
Снова дилема…
Вариант 1 : Полностью настраиваемый компонент, который несет в себе практически все элементы (стенки, царги, конформаты, шканты, кромки (можно выбрать из списка), ножки (можно выбрать из списка), ручки (можно выбрать из каталога), фасады (можно выбрать из каталога) и т.д.
Преимущества: Быстрая настройка, полки стоят точно по размерам без дополнительных настроек. Т.к. все элементы несет в себе то сам же их и может посчитать ( м.кв. плиты, м/п кромки, кол-во конфирматов, шкантов, петли, ручки, ножки и т.д. цены уже проставлены (при первой настройке) или можно поменять, стоимости , общий итог. (хотя CutList никто не отменял).
Недостатки : Можно добавить новый элемент (например полку), но возникнет проблема с его учетом. Вернее частичная проблема – я могу прописать алгоритм учета добавленных материалов и он их посчитает, но если этот добавленный элемент будет удален, то его материалы могут остаться (вот тут пока четкого понимания алгоритма у меня пока нет, только идеи…) На видео цен и стоимости пока нет , но я могу добавить.
Ссылка на сервисе
Вариант 2: «Пустой» компонент, внутри ничего, но можно все добавить из каталога.
Преимущества: Все доп. элементы ставятся из каталога.
Недостатки : При добавлении ,например полки, требуется доп. присадка по высоте (за стенку она «цепляется» сама и ширину выбирает автоматом). «Внутри» себя ничего не считает. Все передает в CutList.
Ссылка на сервисе
Читайте также: