sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Issue with dynamic component

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    2 Posts 1 Posters 679 Views 1 Watching
    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.
    • M Offline
      MaxEvron
      last edited by

      Hi,

      I am learning how dynamic components work. I simply created a door with its frame and setup two options in order to set the width and the height of the component. The user can provide both options and the component is supposed to get resized according to the information provided. To do so, the component contains sub-components with attributes. These attributes are set with simple formulas depending on the main component in order to resize and move them inside the main component. Up to here, close to everything works excepted a sub-component which is re-sized the right way but also moved unexpectedly along the red axis whereas its X attribute is set to a constant value in order this sub-component not to move (see "dp_cdrh" component in joined file)

      My questions are:

      1. Where am I wrong with dp_cdrh X attribute?
      2. As each sub-component axis is set at the same location as the axis of the main component containing them, when converting figures into components, outside of each component, I would expect the X and Z attributes not be 0 but another value. For example, if a sub-component is floating 2 meters over the floor along Z axis, I would expect Z attribute to be 200, not 0. Did I miss something about axis location?

      Thanks.


      Door and frame as a dynamic component (test case)

      1 Reply Last reply Reply Quote 0
      • M Offline
        MaxEvron
        last edited by

        Don't know what I missed. I recreated the dp_cdrh component and everything works fine, now... I attached the file if you want to check out.

        Door and frame, fixed

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

        Advertisement