Jump to content

Vlado

Vectorworks, Inc Employee
  • Posts

    577
  • Joined

  • Last visited

Posts posted by Vlado

  1. On 1/31/2023 at 1:29 AM, Sue CW said:

    Did you get your answer Garrett?

    Yeah, he managed to see it working. It was a question of cleaning his user folder, and he was able to see the content.

     

    From what I see in your reply, yes if you have a custom workspace that is not based on Landmark or Designer, you'll have to add the Laubwerk tool manually. 

  2. @zoomer Vectorworks will recognize Laubwerk catalogs that were installed separately. It also allows you to select an additional folder to be searched for laubwerk Catalog (a menu under the three dots at the top right corner of the Laubwerk Plant Catalog dialog)

     

    As for the missing thumbnails, we'll check what's going on, they should show up even though the plants are located outside Vectorworks.

  3. @Oaktown The full content is automatically included if your license contains the Landmark product. Any other product will get those 5 default plants.

    The Design Suit contains Landmark, and should list you the entire content.

    Can you make sure the about box states Design Suit?

    If so, then you can try deleting the cache at "<user folder>\Vectorworks\2023\Plug-ins\Data\Laubwerk" and use the Laubwerk tool again.

     

    if you still cannot see the full content, please send me an email at vstanev@vectorworks.net

  4. Here is a little random information on textures and images.

     

    Textures can be taken from the shaders:

    https://developer.vectorworks.net/index.php/SDK:Using_Shader_Records&nbsp;

     

    As for the images itself, there is a class

    VWFC::VWObjects::VWBitmapObj

    but I’m not sure how useful it is.

     

    I would rather look into VCOM interface VectorWorks::Imaging::ICompressedImage for example. See the others in this namespace

    They are located in the SDK, and automatically/should be included in your project:

    \SDKLib\Include\Interfaces\VectorWorks\Imaging

     

    You can use it like this:

    using namespace VectorWorks::Imaging;
    
    ICompressedImagePtr image( IID_CompressedImage ); // create an instance
    
    Image->CreateFromObject( h );

     

    • Like 1
  5. @Cachino King It looks like you need to you use the ISDK function:

    gSDK->TesselateObject

     

    It will give you the faces and texture mapping of the object you provide. Essentially, it's like rendering the object, only it renders into a callback.

     

    Send me an email to vstanev@vectorworks.net and I can send you some code snippets.

    • Like 1
  6. Hi @Tobias Kern,

     

    There is one major thing about the difference between Worksheets and Data Tag.

     

    The Data Tag is associated and reports data of one object. It does allow access to Worksheet functions but only the ones that are related to a single object. This means that you cannot query or work other objects in the drawing. So, when we talk about using Worksheet functions in the Data Tag, this only means the ones that extract information from one object only, e.i. non-criteria based functions.

     

    Worksheets can work in two modes:

    1. A regular cell, which you use Worksheet functions with criteria. This is a mode where the functions will extract information from the entire drawing.

    2. A Database cell, which uses non-criteria functions, because the objects are determined by the DB criteria.

     

    Now, worksheets cannot mix #1 and #2 in one cell. This means that you cannot use criteria-functions in a DB row context. But you can have a cell combining different cells by logic.

     

    The Data Tag does not support #1 at all.

     

    However, I understand the need, and it would make it a great improvement in the future.

     

    For now, you have to use a Worksheet to achieve such reporting.

     

    Regards,

    Vlado

     

    • Like 2
  7. 15 hours ago, Myke said:

    but this time regarding the UUID

    This is a unique identifier, used to uniquely represent an interface, or implementation of an interface.

    You can generate unique identifiers for your plugins, here is some information on how:

    https://developer.vectorworks.net/index.php/SDK:Generate_UUID_for_Extensions

     

    15 hours ago, Myke said:

    how to exchange data between Vectorworks and the SD

    The SDK is an API that accesses the Vectorworks model.

    I guess you should familiarize yourself with the Vectorworks model:

    https://developer.vectorworks.net/index.php/SDK:The_Vectorworks_Environment

     

    Then look at the VWFC::VWObjects namespace, and you'll see wrapper classes for the various types in the model.

     

  8. On 12/18/2021 at 7:54 PM, Myke said:

    My last question that I have is whether or not I could use C# over C++? If I understand correctly some of the SDKs functionally can be loaded into a DLL and then be referenced from a C# environment.

     

    Hi @Myke it is possible to make C# plugins, but that is connected with having to build your own bridge between C++ and C# as all of the Vectorworks SDK is in C++. I'm afraid it wont be as simple as loading DLL. I mean it could be, but you'll have to create your DLL to load in the C# environment.

     

    Again, it's not impossible, but it might require more work in C++ that anticipated.

     

    Also, I'm not sure how C# would work on the Mac, if there is a requirement to work on the Mac.

     

    Depending on the complexity on your project, it might be better to stick with C++. But if it is complicated, it might worth it to build your own C++/C# transition layer.

  9. @hollister design Studio @lgoodkind We have reverted the old behaviour, and you will see the change in the upcoming SP2 release in couple of weeks.

     

    FYI. The change was made to reduce confusion when attributes are set to hatch together with hatch joint pattern, in which you get two hatches on top of each other. Making even more confusion is not a good solution, se we reverted it to think of a better approach to solve the original problem.

     

    Thank you for reporting this.

    • Like 2
  10. Hi @tbexon

     

    Yes, unfortunately this is a regression that we need to investigate further.

     

    For now, you can use the following code the check this:

    str = vs.GetVWRString('Vectorworks/Strings/2103 *', '6') # The localized 'True' value
    vs.AlrtDialog(str)
    
    str = vs.GetVWRString('Vectorworks/Strings/2103 *', '7') # The localized 'False' value
    vs.AlrtDialog(str)

     

    This is the actual string returned by vs.GetRField, and it would be better to use anyway instead of the vs.EvalStr workaround.

     

    Also, this is compatible with previous versions of Vectorworks.

     

    Regards,

    Vlado

  11. Hey @Jayme McColgan 

    Do you have sub folders in your source code structure? If so, you have to have '__init__.py' (and empty file) in each folder and included in the xml.

    The vso/vsm/vst feed in the compiled .pyo files in the Python engine. It sounds like the Python engine is still looking for files.

    I think it would be best if you can send me an email with the information, so I can reproduce it on my end and see what's going on.

    email: vstanev@vectorworks.net

  12. On 1/31/2021 at 7:39 PM, Luke Gilmer said:

    2) Related, I'm reviewing precipitation performance data for outlets, and something seems in error.

    Hi @Luke Gilmer can you please take a look at the catalog files (see my previous post) and check for errors there, as there are two things: display units are specified by the irrigation settings and that's where the error is, or the catalog contains errors.

     

    Please file a bug in Jira about any bugs you see in the feature or in the catalog, providing a test file to demonstrate the problem.

    If you don't know what Jira is, or you cannot access it, please send me an email explaining the problem with a test file at vstanev@vectorworks.net

     

    Regards,
    Vlado

    • Like 1
  13. Hi @Piotr Karczewski and @Luke Gilmer,

     

    Yes, it is awkward to add content from the feature UI, but there is an easy way to do it via Excel.

    Go to the 'Libraries\Defaults\Irrigation\Catalogs' location in your Vectorworks installation.

    There you'll see a list of files organized by name which relates to the tool and mode, they are named well so you'll orient easily what is for what.

    Then notice that there are three files with the same name, and then another three with the same name suffixed with ' - Performance Data'

    The idea is that the first triplet will list the available products, and the 'performance data' file will specify the performance of each product listed in the other file.

     

    The triplet files are with extensions: xml, xlsx, and txt:

    - The XML file defines the meaning of the columns in the xlsx (Excel) file, listing the type/unit of the value in this column. Please do not edit the XML file, but you can use it as a reference to understand the data.

    - The XLSX file is an Excel file with the data. For example the 'Outlet Rotors.xlsx' will list rotors. Note how not all the cells on column A and B has value. This is because there is implied rule that if a cell is empty, the value of the last non empty cell up on this column will be used. This makes for easier reading of the tables.

    - The TXT file is an export from the XLSX file. Have the XLSX file open in excel, then go to 'Save As' and choose type 'Unicode Text (*.txt)' before saving.

     

    So, the process for adding content is that you edit the XLSX catalog file (e.g. Outlet Rotors.xlsx), add the products you need then edit the corresponding 'Performace Data' XLSX file (e.g. Outlet Rotors - Performance Data) providing performance information for the products you just added. Then export both XLSX files to unicode TXT and override the ones from Vectorworks. Then you'll see your data show up in Vectorworks.

    I'm not sure at the moment, but you might experiment to put the TXT files in your user folder, and Vectorworks might pick them up instead of the ones from the application content.

     

    Note! When editing the 'Performance Data' XLSX file. The Column B is 'Model (criteria)' This means that you can use '*' (any sequence of symbols) and '?' (any one symbol) to specify several models that share the same performance data. This is for convenience and makes the data more compact. (see attached image)

     

    image.png

     

     

    • Like 1
  14. @Mark Aceto well, i'm not really familiar with this server. I guess you can open the URL in a browser:

    https://cache.gis.lacounty.gov/cache/rest/services

     

    and look through it to see which one you will be interested. Vectorworks will be able to work with any service that is (MapServer). you can use the 'ArcGIS JavaScript' link in the browser when you open a service to look at it. 

     

    Like for example this one:

    https://cache.gis.lacounty.gov/cache/rest/services/LACounty_Cache/LACounty_Aerial_2006/MapServer


    When you click on 'ArcGIS JavaScript' you will see the imagery that this service provides.

    Vectorworks will be able to show this image too. And if this image is blank, it will be blank in Vectorworks too.

     

     

     

×
×
  • Create New...