Jump to content

KingChaos

Member
  • Posts

    261
  • Joined

  • Last visited

Posts posted by KingChaos

  1. hi there,

     

    i try to read out cell data out of a spreadsheet with the data stamp

    image.png.6f09bcede803aaf28c0e9340f4be4401.png

    is not working at all. 

     

    is it general possible in vwx 2022 to use such a lookup for my stamp, which finds a value in a spreadsheet range and return same rows (subrows in this case) different columns value?

     

    This may help me for my problem, if i need a script which can use vlookup or else.

  2. i had to ask: 

     

    how to manipulate this code

    Modified April 2017
    @Marionette.NodeDefinition
    class Params(metaclass = Marionette.OrderedClass):

    APPEARANCE

    Name

    this = Marionette.Node( 'Popup' )
    this.SetDescription('This node demonstrates the use of a Popup OIP control. The values returned by this node will be integers based on your selection starting with 0 for the first option and increasing by 1 for consecutive options.')

    Input Ports

    OIP Controls

    input = Marionette.OIPControl( 'Popup', Marionette.WidgetType.Popup, 0, ['Extrusionsflaeche RR 15x25', 'Extrusionsflaeche QR 20', 'Extrusionsflaeche QR 25', 'Extrusionsflaeche QR 30'])
    input.SetDescription('an OIP control representing the options designated within the script editor')

    Output Ports

    output = Marionette.PortOut('s')
    output.SetDescription('an integer corresponding with the option selected in the OIP. Returned values range from 0 to one less than the number of options.')
    BEHAVIOR
    def RunNode(self):
        #inputs
        input = self.Params.input.value

    script

    outputs

    self.Params.output.value = input

     

    to have a string as an output which is corresponding to the popup selection instead of the integer of the input?

    • Like 1
  3. CHATgpt solved it in the 5. try

     

    #Modified April 2017
    @Marionette.NodeDefinition
    class Params(metaclass = Marionette.OrderedClass):
    #APPEARANCE
        #Name
        this = Marionette.Node( 'Popup' )    
        this.SetDescription('This node demonstrates the use of a Popup OIP control. The values returned by this node will be integers based on your selection starting with 0 for the first option and increasing by 1 for consecutive options.')
        
        #Input Ports
        
        #OIP Controls
        input = Marionette.OIPControl( 'Popup', Marionette.WidgetType.Popup, 0, ['Extrusionsflaeche RR 15x25', 'Extrusionsflaeche QR 20', 'Extrusionsflaeche QR 25', 'Extrusionsflaeche QR 30'])
        input.SetDescription('an OIP control representing the options designated within the script editor')
        
        #Output Ports
        output = Marionette.PortOut('s')
        output.SetDescription('a string representing the option selected in the OIP..')
        
    #BEHAVIOR

    def RunNode(self):
        #inputs
        input = self.Params.input.value
        
        #script
        options = ['Extrusionsflaeche RR 15x25', 'Extrusionsflaeche QR 20', 'Extrusionsflaeche QR 25', 'Extrusionsflaeche QR 30']
        selection_index = int(input) # convert the string input to an integer index
        selection = options[selection_index] # get the corresponding option

        #outputs
        self.Params.output.value = selection
     

  4. i asked the chatGPT, whether he can manipulate the node for me.

     

    Du

    Modified April 2017

    @Marionette.NodeDefinition
    class Params(metaclass = Marionette.OrderedClass):

    APPEARANCE

    #Name this = Marionette.Node( 'Popup' )    this.SetDescription('This node demonstrates the use of a Popup OIP control. The values returned by this node will be integers based on your selection starting with 0 for the first option and increasing by 1 for consecutive options.') #Input Ports #OIP Controls input = Marionette.OIPControl( 'Popup', Marionette.WidgetType.Popup, 0, ['Extrusionsflaeche RR 15x25', 'Extrusionsflaeche QR 20', 'Extrusionsflaeche QR 25', 'Extrusionsflaeche QR 30']) input.SetDescription('an OIP control representing the options designated within the script editor') #Output Ports output = Marionette.PortOut('i') output.SetDescription('an integer corresponding with the option selected in the OIP. Returned values range from 0 to one less than the number of options.')

    BEHAVIOR

    def RunNode(self):
        #inputs
        input = self.Params.input.value

    #script #outputs self.Params.output.value = input

    ich moechte gerne als Output keine integerwerte, sondern den Text, der im Popupausgewaehlt wird (translated after by hand: i want as output not the int i want the string which i choosed in the popup)

     

    er meinte

     

    ChatGPT

    Modified April 2017

    @Marionette.NodeDefinition
    class Params(metaclass=Marionette.OrderedClass):
        # APPEARANCE
        # Name
        this = Marionette.Node('Popup')
        this.SetDescription(
            'This node demonstrates the use of a Popup OIP control. The values returned by this node will be the text of the option selected from the list.')

    # Input Ports # OIP Controls input = Marionette.OIPControl('Popup', Marionette.WidgetType.Popup, 0,                               ['Extrusionsflaeche RR 15x25', 'Extrusionsflaeche QR 20', 'Extrusionsflaeche QR 25',                                'Extrusionsflaeche QR 30']) input.SetDescription('an OIP control representing the options designated within the script editor') # Output Ports output = Marionette.PortOut('s') output.SetDescription('a string corresponding with the option selected in the OIP.') # BEHAVIOR def RunNode(self):     # inputs     input = self.Params.input.value     # script     # outputs     self.Params.output.value = input

     

    so he excactly understood what i wanted, he changed the param typ from int to string and adapted the output.set description but he did not any other modification in the code.

     

     

  5. Hi,

     

    ich want to manipulate the popup node 

     

    #Modified April 2017
    @Marionette.NodeDefinition
    class Params(metaclass = Marionette.OrderedClass):
    #APPEARANCE
        #Name
        this = Marionette.Node( 'Popup' )    
        this.SetDescription('This node demonstrates the use of a Popup OIP control. The values returned by this node will be integers based on your selection starting with 0 for the first option and increasing by 1 for consecutive options.')
        
        #Input Ports
        
        #OIP Controls
        input = Marionette.OIPControl( 'Popup', Marionette.WidgetType.Popup, 0, ['Extrusionsflaeche RR 15x25', 'Extrusionsflaeche QR 20', 'Extrusionsflaeche QR 25', 'Extrusionsflaeche QR 30'])
        input.SetDescription('an OIP control representing the options designated within the script editor')
        
        #Output Ports
        output = Marionette.PortOut('i')
        output.SetDescription('an integer corresponding with the option selected in the OIP. Returned values range from 0 to one less than the number of options.')
        
    #BEHAVIOR

    def RunNode(self):
        #inputs
        input = self.Params.input.value
        
        #script
        
        #outputs
        self.Params.output.value = input

     

    that i get as output the string i popped up not int 0,1,2....

     

    i think thats pretty easy but i dont know the exact syntax of the code to do it by myself.

     

    maybe someone can help me quickly with this easy stuff :()

  6. Do the calculation first and minimize the extrude, Move or rotate nodes.

     

    I am struggling with similar Problem, i made Marionettes for extragroup cabinets and now i am seeking for a method to minimize the Code. U can wrap your Marionette and get the hole python Code. Then minimize it? Maybe Chat gpt can help u, i asked it today but see yourself

  7. it is impossible to ungroup it, that would be too much work to do.

     

    It is impossible to unsymbol it, becaus i need them as a symbol to make the object useable in future projects. If i allways have to resymbol them if i want to use my unsymbolized group that is too much work to do.

     

    ah ok, i only wondered, that it can be used when the object is in a group and deeper, but 5 groups seemed to be to deep for getting a result.

     

    that vid shows u that i cant use stamps in a sectional view on things which can be stamped in a normal layout view.

  8. Hi,

     

    the carpenters here in germany are using vectorworks interior cad and a lot of them are struggling with the lack of the data stamp functionality. It is such a cool features that saves hours of time and avoid mistakes but why it is impossible to use the data stamps for stamping stuff what is in a black symbol?

     

    Another thing isnt working, the using of the stamps for the cabinets of interior cad. The 3d-Part stamps are working, but it is impossible to stamp stuff what the extragroup uses in their new cabinets, called box objects. With taht u can place stuff parametrically in the boxes of a cabinet, but in the layout i cant use the stamps for thos box objects?

     

    In addition something isn working well, if i have stuff placed in group, in group which is in a group, which is in a group ...(i dont figure out, how deep it has to be in a group/group... that this malfunction of vewx occured) and i cant use the stamps for it.

     

    Another problem with the data stamps is, that i cant use the stamps in a section of a layout. in the main view, top view, side view it works, but if i make a sectional view it is impossible to stamp things i placed.

     

    Maybe some of this is is not known over there, but it is avoiding me and others from working in a way, the program was sold to us.

     

    BR KingChaos from germany.

  9. @DomC do you have any idea, how i can make this happen? i got your nodeimage.png.3851609106c06f3d6534863405834314.png

    and it can help, but it wont do all the rest ^^

     

    image.png.e75e6564e027a58669571e005eb22961.png

    i think with this node i can place the duplicates for the specific views (side, top front maybe isometric) but i dont know how to grab the right ones to move

  10. some problems occured, because they objects are sometimes groups sometimes solids. I cant "set entity matrix" of a group to make it go x and y.

     

    so i would have to make the record field value onto the solids instead of groups to make it easier making the objects were 0° rotated in all axises.

  11. image.thumb.png.0244451e2db4599a4e6524d96ef4023d.png

    this node is needed, its only an example for the 2D arrangement.

     

    the stuff i need to make is something like this.

    image.thumb.png.34d1656e46ac119ef32751d38b933962.png

    this is made by xtragroupd for the CNC 3D Parts it copies all the 3d Parts flat into x-y with its name, material etc.,

     

    but i need this for free parts which have nothing to do with xtragrou interiorcad. in bonus i need not only a top view of this part i need a side view under the top view and a side section right of my top view.

     

    It is a horror to make a viewport in the layout for all the metalparts i used and turn them into orthogonal views to place some measures while i have to be sure only having 1 of them in my viewport in the layout. In our business, shop interior the 3d parts of extragroup are not half the work we have to do. so it will be extremely comfortable to have such a tool for not-3D-part of XG.

     

    in the vwx file are some metal parts connected to the record schlosserei v9 i think and the corresponding list is Metallbau i think, u will see it in the bom folder in the manager.

     

     

    br nils

    BauteilableitungMetallV1.vwx

  12. Hi, thank you very much. I dont get what u meant in the last sentence.

     

    I dont know yet how to deal with the parts which are more the 1 time in the file.

     

    If i Analyse the file content with a Filter of All objects with database Connection it will list me all the doubled parts. If i clean the Lust with Duplikate delete i dont know whether the List can be use for Making duplicates. 

     

    I am now searching for a node which can reset the 3d rotation of the parts to have them lying down in the construction Level oriented in x,y and z in the case the parts are placed and rotated.

     

    I am also searching for a node which can make the 2d arrangement of the parts in the List to have them next to each other.

     

    If all this is done i will need a sort node to have the parts Sorted by pulldownoption: 

    Name

    Assembly Name

    Material

    Coating type

     

    Like it is done by the xtragroup Feature for the 3d parts.

     

    If u can Support me further in this project i will make a Metal Layout in 5 Minuten instead of 2 hours. I will publish the wrap then for the community. 

     

    Br kc ❤️

  13. Hi there,

     

    i got some node "Get Num Rows and Cols" from marissa here working fine.

    image.thumb.png.85eff9d4a6cd71f81c31f225ec0c1d32.png

    now i need to get the information out of the subrows of a worksheet.

     

    image.png.a5ee1c34ab72ae790ee7050e8b5cad0d.png

    i need a marionette, which can extract the subrowed same objects, to read out how often i got those items in the file.

     

    The goal is to make a graphic bill of material for our metalworkers, because this graficBOM is only available for woodworking parts from extragroup. But i need this for self made metal parts which are connected with my "schlosserei V9" Database.

     

    Further i need a node to get and write data out and into this database.

     

    @Dominique Corpataux helped me with the start and "what might work", thx for this.

     

    but now i need some help to get specific data of accumulated parts.

     

    br KC

×
×
  • Create New...