Jump to content

Fuge

Member
  • Posts

    135
  • Joined

  • Last visited

Posts posted by Fuge

  1. Curious if someone can confirm what I'm seeing with the following script.     Below.. I'm wanting to select an object and make it a child of a PIO.     It appear from the testing I've done that the PIO has to already exist, or exist on the layer, before it can be made the parent.   It appears the PIO can't created during the script,  and isn't realized yet...  for CreateDuplicateObject to work.   If the PIO already exists on the layer and selected with the other object to be made the child,  CreateDuplicate works fine.. 

     

    Maybe I'm missing something...  but I'm wondering how I can make this work if the PIO isn't already on the layer prior to running the script.  What's a workaround or another approach?  Should the PIO be made a symbol..  Would making it into a symbol, and inserting the symbol during run behave different since I wouldn't be "creating" it since it would already exist?!

     

    Thanks!!

     

    PROCEDURE SetParent;

    VAR


      h1, h2, hPIO, DupObjh: HANDLE;
      ObjName :STRING;

     

    BEGIN

     

      {   Select an object, run, script adds the PIO, Does not work 😞  }

      ObjName:= 'TESTPIO'; 

      h1 := FSActLayer;
      hPIO := CreateCustomObject( ObjName ,0,0,0) ;
      SetSelect( hPIO );
      DupObjh := CreateDuplicateObject( hPIO, h1 );

     

     

    {  Sub this...   On the active layer, select an object, then select the PIO, run, works   }
    {
      h1 := FSActLayer;
     h2 := NextSObj(h1);
     DupObjh := CreateDuplicateObject(h2, h1);
    }

    END;
    RUN(SetParent);

  2. Thanks Josh...   I did further Scooby-doo-ing around but didn't find anything about bitmap interface...   It doesn't appear to be very well documented.

     

    Appreciate your time...

     

    Dave

  3. Curious if anyone knows anything about RunImageComp?  I don't see anything online about it...  An example would be nice!

     

    I'm looking to create a thumbnail of the active sheetlayer outputted at a predefined size saved at a predefined location...   

     

    Of course I realize i can do something with Publish but would rather not for this solution.  🙃

     

    Thanks! 

    Dave

     

  4. Hey Maarten,   Thanks for your reply....  Due to what we do, the components in the end,  probably won't be screws... that was just an example of what a component could be. 

     

    When I mention PIO inside a PIO... I was thinking It would be nothing more than a dummy PIO..   My thought is it wouldn't have any geometry,  it would just be there to be duplicated in a For loop and would have a record attached to it,  as you mentioned,  for the the Worksheet to count.

     

    Appreciate the ideas guys!!   thanks for your time..

  5. Thanks for the suggestion Pat...   Seems there's not really a clean simple way of doing it.    I was thinking inserting a PIO inside a PIO,  or even just a locus3D and multiplying it within the PIO.   The PIO i'm creating could have 12 of this,  4 of that and so on...  so it could get messy fast whichever way it's done...   Another program I was using has a special function for doing something like this...  One of the few things I like about the other program... Hence why we've moved back to VWs.

     

    It would be great to see a built-in function for this...  something like    QTY(  LnewObj, 12 );      12 of the last new object...   super simple!

     

    Dave

  6. Hey Guys,

     

    Does anyone have a clever way of creating a PIO where you have a large quantity of a component without having to create geometry of each inobject instance?

     

    For example,   If you had a BOM and it required 12 screws...   I don't want to create 12 instances of the screw,  Maybe only one... but have my worksheet count a quantity of 12, but insert only 1 instance of the PIO (with a variable = 12) into my document.

     

    Hope that makes sense...

    Thanks for any insight...

    Dave

  7. Okay I've done some more digging and testing,  and found that you can attach a texture(s) to a PIO.

     

    If you use  SetTextureRefN   the result is the same as selecting a texture on the Render tab,  however the Render tab options for textures ends up getting changed bit for the PIO depending on the texPartID flags you use. 

     

    Thought I'd share what I found to hopefully save someone else some time in the future!

     

    Thanks!

     

     

     

     

  8. Hi Guys...

     

    Am I missing something?      I don't see a procedure available to create a symbol from a selected object.  MySoonToBeNewSymbol := LSActLayer;  The only way to create a symbol from what I see is using  BeginSym, EndSym...     Seems like there should be a way..  but it appears not to be available...

     

    Looking to automate creating a symbol from imported geometry.   I see the XT import can now create a symbol,  but it creates a symbol from the import for each geometry group within the file.   I want 1 symbol.

     

    Any insight is appreciated...  Thanks!

    Dave

  9. Hi Guys,

    As the scripts grow larger we're forced to us PX files and INCLUDES. That's fine.. but is there an easier way to then compile the script than having to go back to:

    Tools > Scripts > Vectorscript Plug-in Editor...

    Find your Plugin, Open it.. and hit the Compile button?

    This is extremely in-efficient and slow........... There has to be a better way!

    And sugestions would be appreciated..

    Thanks...

    Dave

  10. I know you guys had a power outage last week.. I was on hold for 20 minutes and got hung up on waiting for someone to help me simply get a quote for an upgrade. So I call back several times and finally talked to someone. I'm told I'd have pricing within a 1/2 hour, never happened, no call nothing. Call again and leave a message for Pablo. He leaves me a message about needing more info. Left him a message with what I'd like to upgrade. No call back, not quote again. is it that hard? Today I call and NNA is closed.. The 800 number has a the Thanks giving message on it from last fall... Hello?

    In all my years of using Vectorworks.. I can't understand why it's so difficult to get something as simple as a quote? You have to be losing business.. this isn't that hard... I can't but help feel it's time to change software packages.

    I'm sorry.. I'm not one to rant... but this is ridiculous...

  11. Bob,

    PIOs with 2D & 3D elements can only be inserted in Top/Plan since it's a hybrid object.

    If you read the VS manual in regards to PIOs, you should never set views or call dialog boxes from within your object. PIOs are intended to be inserted in Top/Plan.

    Dave

  12. we build and design tradeshow exhibits. So we use Vectorworks for designing, quoting, assembly drawings, detail drawings. We export to MasterCAM for CNC and export to Artlantis or Cinema4D for rendering.

    we have many inhouse written plugin objects and over 1500 symbols. We organize everything via classes and automate many tasks using vectorscript.

    We pretty much do everything from design through production with Vectorworks

    • Like 1
  13. Fellow VectorWorks Users,

    We have been long time users of VectorWorks and love it. But lately some people in our organize feel Solidworks would be a better solution of us. Yes, there is a big price difference between Vectorworks and Solidworks, but from speaking to Solidworks the price difference can be justified because of the time Solidworks can save in speed and it's feature set and automation.

    Does anyone have good knowledge of both Vectorworks & Solidworks and willing to share personal experience on what makes one better or worst than the other?

    Any insight is appreciated.

    Thanks

    Dave

  14. I like when they throw in NON industry related things like the "Navigation" palette in hopes you'll upgrade to a more expensive version of VWs. It's the same with Print Sheets. The rest of the things I would get with more expensive version we would NEVER use so it would be a waste of money... and considering we have over 30 user licenses this is a real turn off for us!

×
×
  • Create New...