Jump to content

KingChaos

Member
  • Posts

    125
  • Joined

  • Last visited

Posts posted by KingChaos

  1. I dont have any extrusion in this file, i only place red symbols made out of XG Cabinets and got problems with the predefined names of these cabinets because the name is not able to be manipulated with set record field.

  2. Is it possible, to inhibit that VW will show a variable in the OIP?

     

    Maybe i make such similiar situation like your network.

     

    Input is a selector, rectangle, circle or hexagon.

     

    IF it is a circle, you can input a radius, if rectangle u can input a & b and a hexagon u can input edge count and inner/outer radius?

     

    So i dont need a&b in a circle or hexagon, so i am looking for a way that u can "hide" the named input variables which u define as not needed?

     

     

    br KC

  3. Hi,

     

    i used this "Get Texture" Node and i wonder how it has to be modyfied to work with symbols, placed in a specific folder in the ressource manager.

     

    I made a few marionettes, but scripting a complete new node i cant do.

     

    #COMMAND;READONLYREFFILE;[VWLibDef]/Textures\01. Common\Get Texture.py;
    #Modified by MF May 2017
    #Modified by MF Feb 2019 - provided index for texture
    @Marionette.NodeDefinition
    class Params(metaclass = Marionette.OrderedClass):
    #APPEARANCE
        #Name
        this = Marionette.Node( "Get Texture" )
        this.SetDescription( 'Returns the selected texture from the dropdown list' )

        #Input Ports

        #OIP Controls
        selectedTexture = Marionette.OIPControl('Texture', Marionette.WidgetType.PopupTextures, 0)
        selectedTexture.SetDescription( "A list of the available textures on the document" )

        #Output Ports
        texName = Marionette.PortOut('sTexName')
        texName.SetDescription( "The selected texture's name" )
        texIndex = Marionette.PortOut('iTexRef')
        texIndex.SetDescription( "The selected texture's index" )
        

    #BEHAVIOR
        

    def RunNode(self):
        #functions
        def callback():
            return 0

        #inputs
        index = self.Params.selectedTexture.value

        #script
            # Populate the texture list
        texNameList = []
        texListID, numItems = vs.BuildResourceList(97, 100, '', True)
        for i in range(1, numItems + 1):
            texNameList.append(vs.GetNameFromResourceList(texListID, i))

        vs.ImportResToCurFileN(texListID, index+1, callback)

        #outputs
        self.Params.texName.value = texNameList[index]
        self.Params.texIndex.value = vs.Name2Index(texNameList[index])

     

    is is possible, to modify this node and get a "Get Symbol" node somehow? Is someone capable to help me with that? I need it for changing symbols in a marionette network which is placing symbols along a polyline.

     

    For sure it wont work if i replace all the bold strings into symbol  but it is not so far away from this, right?

     

     

    KC

  4. same problem here without "solid boolean".

     

    all is working fine, but making "object node" crashes VW

     

    Maybe it is something with the naming of the XG-Cabinets. 

    Until now i am not able to modify the Xg-Cabinet-Name, maybe it is read only somehow.

     

    I can change the name of the object but the cabinet name is like a phantom.

    Even if i am sucessfully set the record of "Korpusmöbel - Alle" and read it out afterwards while making a text with this record value it is shown that i modified it, but in the cabinet this change is not seen.

     

    image.thumb.png.e1302a7508095e67c3cbf5b17c85dedf.png

     

    br KC

     

    Namensinputmit Aktivierung.vwx

    • Like 1
  5. @DomCnext problem is, if i place the same symbol-cabinet multiple times, vw wont rename it all cabinets having the same name f.E. "Korpusmöbel-53".

     

    That will result, if i ungroup the cabinets, that all the parts 3D have not a single databasenetry.

     

    Only the first one placed by marionette has all entries in all databases.

     

    image.thumb.png.5536c79906d88a3258a13ae75e47a25f.png

    the others are not connected to any db.

    image.png.440a2c0318b11f2a7e53d32bba970c98.png

    so if i will later on use those parts i HAVE to manipulate the name, or make VW renaming them.

     

    😞

     

    damn, it was such a good plan.

  6. @DomC Hi and thx a lot so far.

     

     

    its developing.

     

     

    is there any Dropdown possibility for choosing the different symbols like the "get texture" nude?

    I would place my symbols in a specific folder (Interior) in the ressource manager and like to have a pulldown with all symbols existing there.

    image.png.79e5b2e6a0d06ea2df0a0098a63baa91.png

     

    The Rest is working fine, except:

    - textformatting the measuretext (i have no chance for center aligne my text) -> should be red and "right aligned"

    - textformatting the assemblyname-text (RB_01 .... RB_06) should be green and left aligned

    - making an object node out of it VW crashed

     

    BR and thx for your help.

     

    Maybe u have some solutions for there problems.

     

     

     

    KC

     

     

    Namensinputmit Aktivierung.vwx

  7.  

    Thanks Dom, i have to check.

     

    Ah now it works thanks.

     

    Additional question, "is it possible, to have some variables not beeing "named" by condition or otherwise deleted out of hte oip?"

     

    f.E.

    image.thumb.png.af7b151596480b253639dca6c481fd2c.png

     

    If my POlyline has 4 segments, i would like to have the inputvariables height and Width of the 5. and 6. Object are not beeing shown in the oip.image.png.fe984559de45b9aeb12119252abf4ada.png

     

     

    BR KC

  8. Hey,

     

    maybe i am too stupid but nothin happened ^^ except crashing VW a few times.

     

    image.thumb.png.1f5f269758f17b94e4bf7bbf576c38b7.png

    The debug tells me "True" so VW was succesful to placing my value into the database of the 3D-Cabinet, but the Cabinet is still in original dimension.

     

    It named the symbol in the group exactly what i wanted, but something is not right, i dont get what it is.

     

    😞

    Symbol mit Parameters einfuegen_V2.vwx

  9. hi Gregi,

     

    the Master is the symbol, which contains all the other symbols and has an OIP where u can manipulate the height and Depth of the cabinets. The Length is driven by the segmentlength of the polyline (controlgeometry).

     

    u can PM me, if u have some time to have a look.

  10. of course i knew this "crashing all the sketch segments" from TopSolid.

     

    But there u can repair all the stuff because u simply have to manipulate the points and direction, where the dimensioning is.

     

    It was really headache in the start, but did u once get how it works its working for u 🙂

×
×
  • Create New...