sketchucation logo sketchucation
    • Login
    1. Home
    2. fpmalard
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    F
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 8
    • Posts 19
    • Groups 1

    fpmalard

    @fpmalard

    10
    Reputation
    1
    Profile views
    19
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    fpmalard Unfollow Follow
    registered-users

    Latest posts made by fpmalard

    • RE: Get current OS information

      Tks, worked fine.
      Fernando.

      posted in Developers' Forum
      F
      fpmalard
    • Get current OS information

      Hello,

      How can I get current OS information from inside SKU Ruby code?
      I need to find out if I'm running my Ruby code inside either Windows or OSX.

      Regards,
      Fernando.

      posted in Developers' Forum
      F
      fpmalard
    • RE: SketchUp root folder

      Hello Jim,

      Actually I need this outside SketchUp.
      I'm creating an installation package which need to know where is the Plugins folder.

      The registry entry:
      HKEY_CLASSES_ROOT\TypeLib{FBD46897-D37D-484F-A4BF-B48EE41F0348}\1.0\HELPDIR
      seems to be ok.

      Regards,
      Fernando.

      posted in Extensions & Applications Discussions
      F
      fpmalard
    • SketchUp root folder

      Hello,

      How can I get the SketchUp root folder?
      Inside Windows (I still haven't tried for OSX), after install SketchUp, no entry is created into windows registry informing the installed folder.

      The only thing I have found, after you run SketchUp for the first time, is the SKP file extension registration. This adds an entry at registry with the following key:

      HKEY_CLASSES_ROOT\SketchUp.Document\shell\open\command
      or
      HKEY_CLASSES_ROOT\TypeLib{FBD46897-D37D-484F-A4BF-B48EE41F0348}\1.0\HELPDIR

      Is there a more secure way to find where SketchUp was installed?

      Regards,
      Fernando.

      posted in Extensions & Applications Discussions extensions
      F
      fpmalard
    • RE: XML Attribute

      Sure,

      Try this XML string:

      
      
      <?xml version="1.0" encoding="utf-8"?>
      <soap;Envelope xmlns;xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns;xsd="http://www.w3.org/2001/XMLSchema" xmlns;soap="http://schemas.xmlsoap.org/soap/envelope/">
        <soap;Body>
          <CreateTaskInstance xmlns="http://webservices.ofcdesk.com/">
            <sServiceKey>string</sServiceKey>
            <sSessionKey>string</sSessionKey>
          </CreateTaskInstance>
        </soap;Body>
      </soap;Envelope>
      
      
      

      xml1.jpg


      xml2.jpg

      posted in Developers' Forum
      F
      fpmalard
    • RE: XML Attribute

      Todd, I'm using this one:

      http://www.crai.archi.fr/RubyLibraryDepot/Ruby/Attribs_v1_05.zip

      posted in Developers' Forum
      F
      fpmalard
    • RE: XML Attribute

      Hi Todd, thank you for your reply.

      I'm doing the following steps:

      • Insert a simple entity like a circle;
      • Right click, Attributes -> Show;
      • Add a "Sample" category;
      • Add a new Attribute, name as "XML" and value as a XML string;
      • Click OK (the XML string appears at the second column of Attribute dialog;
      • Click Accept;
      • Right click again, Attributes -> Show;
      • Error: "Internet Explorer Script Error: Unterminated string constant...Do you want to continue running script on this page?". No matter Yes or No, the dialog stay blank.

      I suspect that the attribute data is still there but as Attributes sample uses a Web dialog to display the information the XML string format is causing the error due its special symbols like <,>,",/, etc.

      Fernando.

      posted in Developers' Forum
      F
      fpmalard
    • XML Attribute

      Hello,

      I was wondering if it is possible to store a XML string inside an entity's attribute dictionary.
      I have tried to do that using Attribs sample but it did not let me add the string (I guess JSON or JScript are failing to validate the string once it has "invalid" symbols). Another possible problem is the string length. I was unable to find the attribute string length limit.

      Can I do that?
      Do I need to store/retrieve this XML string as a binary package? If so, do I need to use pack()?

      Regards,
      Fernando.

      posted in Developers' Forum
      F
      fpmalard
    • RE: SU view inside WebDialog

      Hello,

      Actually I was wondering if I can preview an entiy drawing inside the webdialog before create it into current model. This will be used on entities created from parameters like width, length, etc.

      As soon as the user change some of these parameters I could show a preview drawing and only after he hits Ok it creates the entity inside current model.

      Any ideas?
      Regards,
      Fernando

      posted in Developers' Forum
      F
      fpmalard
    • RE: SU view inside WebDialog

      Hi Chris,

      Sure, if you can tell me that would be great!!!
      Thank you.

      posted in Developers' Forum
      F
      fpmalard