Blockify and Cylindrify features from Python?

Forum Forums Visual Components 4.0 Python Programming in VC Blockify and Cylindrify features from Python?

Tagged: ,

This topic contains 3 replies, has 2 voices, and was last updated by Avatar JobW 8 months, 1 week ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8806
    Avatar
    wilfal
    Participant

    How can this be done?

    Can’t find anything in the Help File.

     

    Br William

    #8812
    Avatar
    JobW
    Participant

    Hi,

    Okay let’s try something!

    In your program files folder browse to:

    Visual Components Professional 4.1\Python\Commands\vcHelpers\Geometry.py

    On line 285 and on line 328 are two functions defined with the name that looks like something that we need.

    Okay so let’s dig deeper: both need a triangle set. So you know it will only work with Geometry features and not with default blocks and cylinders.

    Now the Python part.

    and if you execute this code, your geometry will by cylindrified.

    Regards,

    #8828
    Avatar
    wilfal
    Participant

    @jobw works like a charm! Very helpful, thank you.

    If it doesn’t work on default blocks and cylinders doesn’t matter, since then they are already in the shape I want them!

    Br William

    #8830
    Avatar
    JobW
    Participant

    Good to hear that the provided solution works for you!

    Good luck!

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.