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!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update

    User defined DC functions

    已排程 已置頂 已鎖定 已移動 Dynamic Components
    sketchup
    23 貼文 6 Posters 5.8k 瀏覽 6 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • R 離線
      remus
      最後由 編輯

      Im not really sure how the imageURL attribute is going to help with that 😉

      http://remusrendering.wordpress.com/

      1 條回覆 最後回覆 回覆 引用 0
      • Chris FullmerC 離線
        Chris Fullmer
        最後由 編輯

        Yeah, Dhruv the imageurl won't work with onclick. THe ONLY thing it is used for is to include a url for an image that will display itself in the component options box. The image never pops up or anything. It only displays when someone opens the options window.

        So unfortunately there is no way to do what you want with the imageurl and onclick. Though that is good thinking, its just not built to do that.

        Chris

        Lately you've been tan, suspicious for the winter.
        All my Plugins I've written

        1 條回覆 最後回覆 回覆 引用 0
        • D 離線
          Dhruv
          最後由 編輯

          Thanks Chris and Remus for your support 😄

          1 條回覆 最後回覆 回覆 引用 0
          • scottliningerS 離線
            scottlininger
            最後由 編輯

            Hey Dhruv,

            Just to add some "official" notes to your question:

            There is no way (currently) to open URLs from an onclick interaction because of security/privacy concerns. We didn't want people spamming you with nasty website links that launch in your browser without you even knowing that a link was coming.

            What we do allow is for html links that originate from inside the Component Options window. Just add something like this to your "description" attribute:

            Click here to <a href="http://mysite.com">Visit my site</a>.
            

            Then anyone selecting your component while the Component Options window is open will see your link.

            It's not as sexy or simple as how you're requesting, but it provides that buffer that we felt was important... if you click on the link you don't know where it's taking you, but at least you knew it was a link.

            • Scott Lininger
              SketchUp Software Engineer
              Have you visited the Ruby API Docs?
            1 條回覆 最後回覆 回覆 引用 0
            • D 離線
              Dhruv
              最後由 編輯

              Thanks Scott 😄

              1 條回覆 最後回覆 回覆 引用 0
              • K 離線
                kelvins
                最後由 編輯

                Any chance that this can be adapted for opening a pdf saved in a common network folder?

                1 條回覆 最後回覆 回覆 引用 0
                • Chris FullmerC 離線
                  Chris Fullmer
                  最後由 編輯

                  I thought it would work just by replacing the internet url with a file version like:

                  file:///C:/Program%20Files/Google/Google%20SketchUp%207/Tools/Sandbox/images/tbflipperlarge.png

                  That did not work though. So I'm guessing they manually disabled linking to anything other than internet links. Porbably a pretty major security risk.

                  Chris

                  Lately you've been tan, suspicious for the winter.
                  All my Plugins I've written

                  1 條回覆 最後回覆 回覆 引用 0
                  • K 離線
                    kelvins
                    最後由 編輯

                    I tried this as well.
                    Avoiding the the security risk is appreciated, but the function that we are missing here has incredible potential.
                    To be able to have a 3D model as a visualization tool and for means of referencing to pdf documents and other files/programs would be the case study of case studies.

                    I suppose I am stuck with using the ruby script URL. Just have to make sure that others have it installed as well.

                    I guess I could post the documents to a website, but that increases my security risks.

                    Don't know what to do, any suggestions?

                    1 條回覆 最後回覆 回覆 引用 0
                    • scottliningerS 離線
                      scottlininger
                      最後由 編輯

                      That's a tough one. We chatted about allowing local files to be opened, but there are all kinds of security concerns with that, so we dropped it from V1.

                      I've added a feature request to our list so we can revisit it for future versions.

                      In the short term, might a password-protected web repository be suitable? You could give a password out to all of your users that allows them to get at the PDFs. If you set up the login to be cookie-enabled, they would only have to log in once and then could get at all of your resources.

                      • Scott Lininger
                        SketchUp Software Engineer
                        Have you visited the Ruby API Docs?
                      1 條回覆 最後回覆 回覆 引用 0
                      • Chris FullmerC 離線
                        Chris Fullmer
                        最後由 編輯

                        Does it work if you have your network setup like an internal internet (I have no clue what I'm talking about). But I remember at a place that I worked in another life, you could type an internet url and it would access local servers only - intranet? If an office setup that type of system, would that work?

                        Chris - sorry for my juvenile netowrok knowledge and jargon 😄

                        Lately you've been tan, suspicious for the winter.
                        All my Plugins I've written

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

                          is it possible to have an alert popup with a link in it?

                          “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
                          • scottliningerS 離線
                            scottlininger
                            最後由 編輯

                            @xrok1 said:

                            is it possible to have an alert popup with a link in it?

                            No, unfortunately.

                            • Scott Lininger
                              SketchUp Software Engineer
                              Have you visited the Ruby API Docs?
                            1 條回覆 最後回覆 回覆 引用 0
                            • 1
                            • 2
                            • 2 / 2
                            • 第一個貼文
                              最後的貼文
                            Buy SketchPlus
                            Buy SUbD
                            Buy WrapR
                            Buy eBook
                            Buy Modelur
                            Buy Vertex Tools
                            Buy SketchCuisine
                            Buy FormFonts

                            Advertisement