sketchucation logo sketchucation
    • Login
    1. Home
    2. SketchUcationKid
    3. Posts
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download
    S
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 25
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: How To Interpret a Text as a DC Formula

      @Jim. first of all, thanks for the reply.
      I will try to be straight in my explanation:

      When opening SketchUp:

      • DC parent name: Cabinet
      • DC child name: Door
      • custom variable name: door_gap
      • door_gap value: =0.3
      • custom variable name: door_thickness
      • door_thickness value: =1.5
      • X axis value: =Cabinet!X+Door!door_gap
      • RotZ value: 0

      OnClick Event:

      • ANIMATE("RotZ",0,-90);
      • ANIMATE("X",Cabinet!X+Door!door_gap,Cabinet!X+Door!door_gap+door_thickness)
        PS: the first animation works fine, as the second one. the problem happens when the second animation runs and change the X axis value, which was previously set to "=Cabinet!X+Door!door_gap". now it toggles between two numeric values (as result the two formulas).

      when I finish the INTERACT mode and resize the cabinet, now, it doesn't resize properly because X axis value is not a formula anymore but a numeric value.

      as a try to overcome this situation, I created another custom variable called "pos_X" (text type) and changed OnClick code, as follows:

      • ANIMATE("RotZ",0,-90);
      • SET("pos_X",IF("RotZ=0","=Cabinet!X+Door!door_gap","=Cabinet!X+Door!door_gap+door_thickness"))
        PS: pos_X receives the right formula in text format. now, I need to know how to interpret this formula and send the value to X axis, in numeric format.

      any idea?

      posted in Dynamic Components
      S
      SketchUcationKid
    • RE: What Motivates You?

      @Jim. you are much right! Dynamic Componets are limited in terms of programming. We also have to deal with bugs. do you have any idea I can put in practice to overcome this issue?

      thanks.

      posted in Developers' Forum
      S
      SketchUcationKid
    • RE: What Motivates You?

      how can I feel motivated if I cannot solve simple issues like this one described in this post:
      http://sketchucation.com/forums/viewtopic.php?f=40%26amp;t=66906

      I'd appreciate your help, if you could.

      posted in Developers' Forum
      S
      SketchUcationKid
    • How To Interpret a Text as a DC Formula

      hi everybody!

      the X axis value of my DC normally comes from a function because of the auto resize. the problem happens when I change the X axis value through the ANIMATE function on the INTERACT mode. it toggles between 0.3cm and 0.85cm values. when I click on the DC, SketchUp overwrites the value passed by the ANIMATE function on the function previously saved on the X axis field.

      from that time on, the DC doesn't resize properly because there's no more formula in the field but a value instead.

      in order to avoid this, I created a custom variable called pos_X in order to receive the formula that should be saved in the X axis field. pos_X is in a text format but X axis field only accepts number format.

      I need to know how to interpret this formula in text format and send the value in number format to the X axis field.

      many thanks.

      posted in Dynamic Components sketchup
      S
      SketchUcationKid
    • How To Get All The Components With The Same XYZ Axis

      hi everybody!

      I created a component with composed by 2 components. when I select the main component, I can see the XYZ axis of the subcomponents. for instance, for the component A, X=-1.9 / Y=0 / Z=0. but, when I select this subcomponent A, inside its atributes, X=0 / Y=-1.9 / Z=0. in other words, X becomes Y and Y becomes X.

      **

      1. why does it happen?
      2. how to fix it?**

      thanks in advance.


      Main Component - Right Values for X and Y Axis.png


      Main Component - Wrong Values for X and Y Axis.png

      posted in Dynamic Components sketchup
      S
      SketchUcationKid
    • 1
    • 2
    • 2 / 2