• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

Bug in custom attributes exposed by Ruby...

Scheduled Pinned Locked Moved Developers' Forum
1 Posts 1 Posters 279 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    fizgig
    last edited by 8 Sept 2009, 23:46

    1. Make a group and give it a custom attribute "TEST_1" equaling "abc" (value isn't important, the underscore in the var name is...)

    2. Select the group and in the ruby box, type Sketchup.active_model.selection[0].set_attribute("dynamic_attributes","TEST_1","efg")

    3. Now try to delete both custom attributes in the custom attribute dialog box.

    Good luck! I've got some library components where I'm trying to delete these doubled attributes and I haven't figured out how yet. Not even the delete_attribute method appears to help.

    1 Reply Last reply Reply Quote 0
    • 1 / 1
    1 / 1
    • First post
      1/1
      Last post
    Buy SketchPlus
    Buy SUbD
    Buy WrapR
    Buy eBook
    Buy Modelur
    Buy Vertex Tools
    Buy SketchCuisine
    Buy FormFonts

    Advertisement