sketchucation logo sketchucation
    • 登入
    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!
    🔌 Smart Spline | Fluid way to handle splines for furniture design and complex structures. Download

    Dimensions Added as Objects Are Drawn - Feedback Please

    已排程 已置頂 已鎖定 已移動 Developers' Forum
    43 貼文 25 Posters 5.7k 瀏覽 25 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • J 離線
      Jim
      最後由 編輯

      @xrok1 said:

      i would like to know how this is progressing as well.

      my feature request would be for equations ie: Dim1 = Dim2*5 etc...

      I've contacted Rick Haws about the status of his plugin. Hopefully he will stop by and give us an update.

      Hi

      1 條回覆 最後回覆 回覆 引用 0
      • R 離線
        Rick Haws
        最後由 編輯

        Hi All,

        Firstly I would like to thank everyone for your continued interest in the dimensioning add-on.

        To bring you up to date.....as it currently stands the SketchUp API does not provide enough access to dimension objects to facilitate the development of our application. Until recently I have been in discussions with the SketchUp folks about the possibility of gaining the required access. They have not been able to provide me with a time frame for doing so. When the opportunity becomes available we will develop it. I would ask that if it is of interest to you, drop SketchUp an email.

        In the mean time please keep your suggestions coming and feel free to ask me any questions that might come to mind.

        Thanks again,

        Rick

        1 條回覆 最後回覆 回覆 引用 0
        • X 離線
          xrok1
          最後由 編輯

          what about the functionality that already appears to be working in the video? is this real or staged?

          if its real, maybe you could do something like soapskinbubble or sketchyphysics has done and release the script you have so far with an expiration date while you get the rest of your functionality worked out. to me from what i saw in the video this is already an invaluable script very much worthy of being used and evaluated by SK users. it looks like you may have solved one of the final needs i have to keep returning to Solidworks all the time for.

          “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

          http://www.Twilightrender.com try it!

          1 條回覆 最後回覆 回覆 引用 0
          • B 離線
            Baker518
            最後由 編輯

            I've been doing some searching for rubies that do anything of this nature and I came up with 2 so far.

            1. GetDimensions.rb by CptainPanic (dimensions returned in a UI.messagebox)
            2. dim_angle.rb by Didier Bur (dimension added to drawing)

            Maybe I am thinking too simple but give this a thought and take a more simple direction.

            Right click on a line, for instance, and return its value in a UI.messagebox.
            Click the message box for option, "Add Dimension" and it would add a dimension parallel to the selected line. From there, the options may could be tailored to include some of the other options people are thinking about. It would be a very simple beginning, but at least a start.

            I think this would be easier and maybe quicker than using the dimension tool already in SU but not as sweet as the auto-dimension tool of the future.

            Don't worry about things you have no control over. Worry is a lack of Faith!

            1 條回覆 最後回覆 回覆 引用 0
            • R 離線
              RickW
              最後由 編輯

              The video was an illustration of how the tool would work, if it could be created. Currently, there is no ruby access to the internal dimension objects. In fact, if you create a dimension object, select it, then run the following code in the ruby console, you'll see that the object isn't even reported as a Dimension, but simply as a "DrawingElement". The second line of code will return the methods for the object - again, nothing even close to what would be required for the creation of this tool. The third line of code shows the methods for the Entities. There is no "add_dimension" method available, and there is no Dimension object like there is Edge, ArcCurve, Group, etc.

              #the following line will get the class of the selected object
              Sketchup.active_model.selection.first.class
              
              #the following line will show the methods of the selected object
              Sketchup.active_model.selection.first.methods.sort
              
              #the following line will show the absence of an add_dimension method for Entities
              Sketchup.active_model.active_entities.methods.sort
              

              RickW
              www.smustard.com

              1 條回覆 最後回覆 回覆 引用 0
              • B 離線
                Baker518
                最後由 編輯

                Rick W and TIG

                Thanks for your response. I know what I suggested is simple on the outside. I only wished I had your experience so I could better understand what I am asking. I have read a lot on building rubies but it still alludes me. Thank you again for your thoughts.

                Mike

                Don't worry about things you have no control over. Worry is a lack of Faith!

                1 條回覆 最後回覆 回覆 引用 0
                • TIGT 離線
                  TIG Moderator
                  最後由 編輯

                  However there is a complicated work round...

                  Make an external component of just a dimension at a given length - say 1 inch. Add it to the model and scale it in its length to suit two points you pick or are dictated by a script - that dim-compo then displays the distance between the points properly... You could also 'attach' the dimension component instance to the points (e.g. edge vertices) using attributes and observers that watch if the vertices change and alter the dim-compo's scaling and location to suit...

                  .

                  TIG

                  1 條回覆 最後回覆 回覆 引用 0
                  • R 離線
                    Rick Haws
                    最後由 編輯

                    Thanks again guys,

                    Keep the suggestions coming.

                    Rick

                    1 條回覆 最後回覆 回覆 引用 0
                    • X 離線
                      xrok1
                      最後由 編輯

                      maybe Whaat could take a crack at this! he seems to be able to bend Sketchup to his will.

                      What do you say Whaat?

                      “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

                      http://www.Twilightrender.com try it!

                      1 條回覆 最後回覆 回覆 引用 0
                      • R 離線
                        RickW
                        最後由 編輯

                        @xrok1 said:

                        maybe Whaat could take a crack at this! he seems to be able to bend Sketchup to his will.

                        Conceptually, it's not a hard script to write - a couple of observers, a bit of code, and it's done. The issue is that Ruby does not have access to SU's dimension objects, either to create or modify them. That capability is essential to this project. That is, unless one invests an inordinate amount of time into workarounds.

                        RickW
                        www.smustard.com

                        1 條回覆 最後回覆 回覆 引用 0
                        • X 離線
                          xrok1
                          最後由 編輯

                          could one not communicate directly with the VCB, updating the dimension from there and visee versee?

                          “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

                          http://www.Twilightrender.com try it!

                          1 條回覆 最後回覆 回覆 引用 0
                          • 1
                          • 2
                          • 3
                          • 3 / 3
                          • 第一個貼文
                            最後的貼文
                          Buy SketchPlus
                          Buy SUbD
                          Buy WrapR
                          Buy eBook
                          Buy Modelur
                          Buy Vertex Tools
                          Buy SketchCuisine
                          Buy FormFonts

                          Advertisement