Ad banner place
Browse, install and update extensions directly in SketchUp with Sketchucation Tools
Download Now
SJ Add DC Attribute v0.3.3
- Overview
- Quick Start
- Documentation
- Release Notes
SJ Add DC Attribute is a plugin for Sketchup.
It is used to apply one or more common dynamic attributes to a selection of groups or components.
The attributes can be entered, or taken from a list of favorite attributes or present in one of the components of the selection.
New in version 0.3.0
Improved interface to be more compact Added tooltips and help popovers An option enables or disables tooltips. This preference is saved in the template and editable in the form.
New option list management You can import option lists from a CSV file. Options can be reordered. Error detection if a label is empty
Improved Value/Formula input field A double click on the "value/formula" field toggles the display of a multiline input area. If you fill in the "Definition" or "Summary" attribute, a toolbar appears. It allows you to add HTML layout tags in one click. If you enter a formula, detection of errors on the number of closing and opening parentheses, as well as on the number of quotation marks.
Improved instance management. Modifications can be applied to all instances sharing the same definition, or only to instances present in the selection. If the attribute does not exist, it is created for all instances. If the option set is only on selected instances, then only those will receive a value. The definition and the rest of the instances will receive a null (empty) value.
New condition "Do not modify if existing!" Possibility to activate the condition by clicking on the field label button. If the condition is activated, the label is framed in yellow. This allows targeted modification of attributes and meta-attributes.
Example, activating the condition on the Name label
If the attribute exists, do not modifyExample, activating the condition on the "Value/Formula" label
If the attribute has a specified value, do not modify the valueExample, activating the condition on the "Formulaunits" label
If the attribute has a specified unit, do not modify the unit
Coupling of the condition "Do not modify if existing!" and case management The condition is checked on the definition and not on the instance.
Attribute saving and creation progress dialog box.
Automatic translation according to local Sketchup settings. Language supported English and French.
The plugin is free, the code is not encrypted and commented in French to help French Ruby beginners. You can download the plugin on my site : https://www.sketchup.simjoubert.com/my-plugins/sj-add-dc-attribute.html
Thank you for your feedback
Simon
First, make a selection that contains components. Call the plugin. The dialog box appears. Create or modify an attribute you can add it to a list of favorites and/or add to all selected components. The new attribute appears in the list of favorites or/and in the list of attributes to add to the selection. You can create multiple attributes Then click the Apply button to save the favorite(s) and actually add the attribute(s). A success dialog box appears when you're done.
SJ Add DC Attribute - Duplicate an existing attribute on a selection of groups and components.
This video shows how to duplicate an existing attribute in a component, and create it on a selection of groups or components that did not have the attribute.
SJ Add DC Attribute - Save an existing attribute to the list of favorite attributes.
This video shows you how to save an existing attribute to the list of favorite attributes. This list is saved in the model. Later, you can reuse this attribute and apply it to other groups or components.
SJ Add DC Attribute - Add description attribute with HTML tags
This video shows you how to create a description attribute with HTML formatting. When you expand the input field by double-clicking, a toolbar is displayed if you edit a description or summary. It allows to inject HTML tags at the location of the cursor.
SJ Add DC Attribute - Import option list from CSV file
This video shows you how to import a list of options for an attribute from a CSV file.
V.0.3.3 2023/01/24 Fixed a bug that left the progress bar in an endless loop in some cases.
V.0.3.2 2022/09/25 Fixed a bug on the transform that rotated instances, if they didn't have a rotation attribute and were rotated around an axis
V.0.3.1 2022/09/12 Correction d'affichage des longues listes dans la fenêtre d'import CSV qui obligeaient à scroller la fenêtre modale. Correction d'affichage des longues listes d'options qui masquait les boutons dans certain cas. Correction du remplissage du formulaire après avoir sélectionné un attribut dans les listes. Les unités par défaut pour les longueurs sont définies selon l'unité du modèle.
V.0.3.0 2022/09/09 Amélioration du HTML et du CSS pour compacter davantage la boîte de dialogue
Correctif sur les attributs standards de Sketchup de position, taille, rotation...
Fixation de l'unité
si formulaunit == nil (unité par défaut)=> récupération de l'unité de longueur du composant.
Si le composant n'etait pas dynamique recupération de l'unité du modèle' (unité imériale => "INCHES" ,unité metrique =>"CENTIMETERS")
Conversion des valeurs de longueur en utilisant .cm ou .to_cm
Ajout de la détection des erreurs
si le nom de l'attribut est vide ou s'il ne commence pas par une lettre.
Si la formule contient une différence entre le nombre d'occurrences de symboles ouvrant et fermant ,(,",",),
Si l'étiquette d'une option est vide.
Désactivation des boutons ajouter à une liste en cas d'erreur
Mise en surbrillance rose les champs contenant une erreur
Possibilité d'agrandir le champ valeur/formule sur un double-clic
En mode textarea si l'attribut est "Definition ou "Summary" une barre d'outils apparait pour facilité la mise en forme.
La balise cliquée se poisitionne à l'endroit du curseur, ou autour du texte sélectionnée.
Le dernier bouton permet de prévisualiser le résultat
Ajout d'infos bulle et de popover d'aide au survol du formulaire
check box pour activer / désactiver les infobulles
Sauvegarde de la préférence d'affichage des infobulles dans le modèle
Les infosbules sont désormais cachées lorsque l'element déclencheur prend le focus
Amélioration de la liste d'options
Vous pouvez maintenant ajouter des options depuis un fichier CSV
Vous pouvez remonter ou descendre une option dans la liste
Ajout de la condition Ne pas modifier si existant
En cliquant sur les boutons label des champs, vous activez ou désactiver la condition sur ce paramètre.
Si la condition est active, le paramètre de l'attribut ne sera pas modifier s'il est vide.
Si la condition est active, le bouton du label est mis en surbrillance jaune.
Si la condition est active et la gestion des instances est "définition", si sur la définition le paramètre est non vide, c'est le paramètre de la définition qui sera appliqué.
Gestion des instances
Si gestion instance = true (modification des instances dans la sélection uniquement.
Si la nouvelle valeur est "nil" correction de la valeur de la définition à nil.
(permet d'afficher correctement la valeur nil dans le panneau des DC)
Boite de dialogue finale avec vue de la progression d'avancement.
Correction s'il la liste des attributs était vide.
Merci à JDD d'avoir lu et corrigé toutes les fautes d'orthographe et de traduction, même dans les commentaires ! :)
Merci à Jack d'avoir testé toutes les fonctionalités et soulevé ques bugs.
V.0.2.9 2022/08/02 Fixed CSS hiding the start of attribute lists if their number was greater than 20. Modification of the CSS to be able to reduce the width of the dialog box and have the different blocks in vertical sequence.
V.0.2.8 2021/12/17 Harmonisation du plugin dans la collection SJDCTOOLS (sjadddcfunctions, sjaddattribute, sjredrawdccollection) Merger of SimJoubert menus which were duplicated in SimJoubert Tools. Merge of the toolbar with the other plugins of the collection The whole plugin is automatically translated according to the language of Sketchup File language available English, French
V.0.2.7 2021/12/02 Conversion bugfixes: conversions of values if formulaunits = "Centimeters", for value and for option list values.
V.0.2.6 2021/12/01 Bug fixes: duplicated attributes, uncleaned favorites…,
V.0.2.5 2021/11/30 Interface : Creating an HTML bootsrap dialog Dialog box with auto translation according to Sketchup language setting Language files in json format support for French and English.
Possible new functions: Addition of option lists, Multiple addition of attributes Possible saving of a list of favorite attributes in the sj_AddAttribute dictionary of the model. Viewing the favorites list Display of the list of attributes for the definitions of the selected components. Ability to add one or more attributes of the selection to favorites without creating a new attribute on the selection, (attribute eyedropper concept) Detection if it is a formula with the sign = quick definition list for native sketchup attributes X, LenX, RotX, ...
V.0.1 2021/11/16 initial version of the plugin It allows to create for a filtered selection of component instance the creation of a common attribute. Option to propagate the value to instances sharing the same definition. The settings of the last attribute created become the default values for the next one. lastattribute is an array in the model's sjAddDCAttribute dictionary. At the moment, it's a one-record nail-hunting memory. This version does not allow to create lists of options, nor formulas.
V.0.1.3 2021/11/18 Addition of the French translation of the drop-down lists then conversion of the results Possibility to choose if the value is a formula or a value Fixed display of dropdowns on instance management, some of the text was hidden by the arrow. Added label cleanup to create attribute name (lowercase, no accent, no space)