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

    [Plugin] TIG-export_SKP_by_layer.rb

    Scheduled Pinned Locked Moved Plugins
    25 Posts 14 Posters 13.3k Views 14 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.
    • MrMitchellM Offline
      MrMitchell
      last edited by

      So, everything is working beautifully on the simpler SKP2RVT file, but something is happening where the more complex SKP2RVT2 file is crashing Sketchup and aborting the process after the Layer0 begins to save. I am attaching both files below.


      Broken File


      Working File

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        Thanks for the feedback.
        At first I thought it was because in the more complex SKP Layer0 is the current layer, BUT it contains NO 'raw' entities using that layer...
        You can always try and save an entirely empty SKP... but is not valid and messes up !
        However, I trapped for this by adding a single guide-point at the origin, if the SKP has no entities.
        BUT this still doesn't work !
        I added extra 'Garbage-Collection' but it hasn't helped.

        I also noted that 'OFF' layers export, but they are not visible - so I fixed that side-issue !

        I also saw that your Styles varied - material by material v. none ... but that makes no difference.

        So at the moment I am at a loss to see what's up...

        I'll publish v2.1.
        Watch out for it...

        Please install that.
        I expect it'll still BugSplat on some of your files...
        Can you submit the BugSplat to Trimble, add an email and also email your full details and the problem SKP and my latest RBZ [with my email-address too] so they have all of the details - they might have some ideas... V2017 is full of new issues that developers are not always aware of...

        TIG

        1 Reply Last reply Reply Quote 0
        • MrMitchellM Offline
          MrMitchell
          last edited by

          I'm currently troubleshooting things on my end as well, I simplified the model by removing all instances of components, nested layers inside components and groups (not ideal, but workable; ideally I could keep a "window" component that is LayerWhatever but have SKP-GLASS and SKP-WINDOWS inside so that if I change one instance of windows in the model, they all update as well...) until I explore more, I can at least have glass groups on SKP-GLASS... I am going to try out 2.1, and start slowly adding complexity again until I break it, but what I also did that seemed to help the most (oddly) was remove all ifc tags, group names, and component definitions? I am attaching the SKP2RVT2 working file below.

          One thing I did notice was that for whatever reason in Revit, whenever I brought in the linked SKP, the other layers were still being pulled in (SKP_FLOORS had SKP_DOORS, WINDOWS, etc.) at least on the first linking if I did not choose specify layers to link inside Revit, again, not a problem, I just make sure to only bring in the layers associated with the link, just more FYI.

          I will play around with this all tonight.


          WORKING SKP2RVT2

          1 Reply Last reply Reply Quote 0
          • TIGT Offline
            TIG Moderator
            last edited by

            Here's v2.1...
            https://sketchucation.com/pluginstore?pln=TIG_export_SKP_by_layer
            It fixes a few issues in the previous post - however, I suspect that sometimes it might still BugSplat !
            Please test and feedback - submit splats too...

            TIG

            1 Reply Last reply Reply Quote 0
            • MrMitchellM Offline
              MrMitchell
              last edited by

              TIG, still getting problems here. On more complex production files, the routine ends up bogging down hard, prompting the option to abort the script. On "nested" layers geometry is butchered so that solids are not retained, only bringing in line segments. At least named components in layers do work. I am attaching a "simple complex" file that does work as far as finishing the routine, however, on a large scale file, the process bogs down to untenable, and I have yet to sit through a full cycle of the script running...


              "Simple Complex" base file


              Broken Nested Layer file

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

              Advertisement