5.12.13.5.2. Étapes de configuration PSOL

[Remarque]Remarque

Dans les versions actuelles, les clés correspondantes sont déjà créées, il suffit donc de les activer.

créer des fichiers ptb

Mettre Ils cadenas_routing_library_inch.ptb et cadenas_routing_library_mm.ptb à.

Par exemple, sous :

D:/CADENAS_ROUTING/

Adapter ifugnx.cfg

Personnalisez ifugnx.cfg dans %CADENAS_SETUP%/ifugnx.cfg .

  • Activez les clés suivantes (actuellement non accessibles depuis PARTadmin, mais uniquement au niveau des fichiers)

    hasPipingClass=Len( _FORMAT_DOC("<CLASSPROP(cns,CNSPIPECONNECTOR_ROUND,CNS_3DID)>").
     value() )>0

    hasConnPointPipingClass=Len(_FORMAT_DOC("<CLASSPROP
     (cns,CNSPIPECONNECTOR_ROUND,CNS_PIPE_CONNECTOR_NOMINAL_DIAMETER,CNS_3DID,
     PNT<chr(44)><GLOBPROP(CONN,Name)>)>").value())>0

  • Pointer sur les fichiers ptb

    [CreationOptions(is3d):include(CreationOptions)] Pointe vers les fichiers PTB.

    CadenasPipingPartLibraryFile(isMmDoc)=
    
    D:/CADENAS_ROUTING/cadenas_routing_library_mm.ptb
    

    CadenasPipingPartLibraryFile(isInchDoc)=
    
    D:/CADENAS_ROUTING/cadenas_routing_library_inch.ptb
    

  • Personnaliser [CADOPTIONS]

    ProcessAdditionalClasses(is3dPart)=CONNPOINT

  • Adapter "hasPipingClass" à "hasConnPointPipingClass" dans les cas suivants et ajouter le code suivant (ou activer la clé correspondante)

    [CreationOptions(isConnectionPoint, hasConnPointPipingClass)]

    [AttributeMapping(isConnectionPoint, hasConnPointPipingClass)]

    [ConnPointAttributes (hasConnPointPipingClass)]
    
    NPS=?_FORMAT_DOC("<CLASSPROP(cns,CNSPIPECONNECTOR_ROUND,CNS_PIPE_CONNECTOR_NOMINAL_
     DIAMETER,CNS_3DID,PNT<chr(44)><GLOBPROP(CONN,Name)>)>").value()
    
    NPS.CUSTOM=type.number
    
    CONNECTION_TYPE=BUTT WELD
    
    DIAMETER=?_FORMAT_DOC("<CLASSPROP(cns,CNSPIPECONNECTOR_ROUND,CNS_PIPE_CONNECTOR_EXTERNAL_
     DIAMETER,CNS_3DID,PNT<chr(44)><GLOBPROP(CONN,Name)>)>").value()
    
    DIAMETER.CUSTOM=type.number
    

    [ConnPointCharacteristics (hasConnPointPipingClass)]
    
    CNS_PIPE_CONNECTOR_IS_MAINLINE=?_FORMAT_DOC("<CLASSPROP(cns,CNSPIPECONNECTOR_ROUND,
     CNS_PIPE_CONNECTOR_IS_MAINLINE,CNS_3DID,PNT<chr(44)><GLOBPROP(CONN,Name)>)>").value()
    
    CNS_PIPE_CONNECTOR_IS_MAINLINE.CUSTOM=type.boolean
    
    CNS_PIPE_CONNECTOR_DESIGNATION=?_FORMAT_DOC("<CLASSPROP(cns,CNSPIPECONNECTOR_ROUND,
     CNS_PIPE_CONNECTOR_DESIGNATION,CNS_3DID,PNT<chr(44)><GLOBPROP(CONN,Name)>)>").value()
    
    ENGAGEMENT=?_FORMAT_DOC("<CLASSPROP(cns,CNSPIPECONNECTOR_ROUND,CNS_PIPE_CONNECTOR_
    EXTERNAL_INS_DEPTH,CNS_3DID,PNT<chr(44)><GLOBPROP(CONN,Name)>)>").value()
    
    ENGAGEMENT.CUSTOM=type.number
    
    DIAMETER=?_FORMAT_DOC("<CLASSPROP(cns,CNSPIPECONNECTOR_ROUND,CNS_PIPE_CONNECTOR_EXTERNAL_
     DIAMETER,CNS_3DID,PNT<chr(44)><GLOBPROP(CONN,Name)>)>").value()
    
    DIAMETER.CUSTOM=type.number
    
    NPS=?_FORMAT_DOC("<CLASSPROP(cns,CNSPIPECONNECTOR_ROUND,CNS_PIPE_CONNECTOR_NOMINAL_
     DIAMETER,CNS_3DID,PNT<chr(44)><GLOBPROP(CONN,Name)>)>").value()
    
    NPS.CUSTOM=type.number
    
    CONNECTION_TYPE=BUTT WELD
    

  • [AttributeMapping(is3d)]

    Assurez-vous que le code suivant est présent.

    Attr_Content_02=CadPipingAttributes
    #:VALS_S;
    #:HELP;Do not change!
    Attr_Section_02=PIPING
    

  • Ajoutez les jeux d'attributs nécessaires pour le piping

    Ajoutez ceux nécessaires à la tuyauterie ensembles d’attributs (tels qu’ils sont répertoriés dans le fichier ptb, en fonction du client). Assurez-vous d’avoir un ifugnx.cfg, un cadenas_routing_library_mm.ptb et un cadenas_routing_library_inch.ptb utiliser. Celui-ci doit contenir les attributs de tuyauterie suivants :

    • DN (mm) NPS (pouce) - diamètre nominal (numéro)

    • ISOGEN_SKEY

    • ISOGEN_COMPONENT_ID

    • CONNECTION_TYPE

    • DESCRIPTION

    • PART_NUMBER

    • PART_NAME (toutes les chaînes)

    type, nombre et rôle de ces attributs peuvent être dans le fichier ptb. Des ajustements appropriés doivent être effectués puis aussi en ifugnx.cfg, dans le bloc [CadPipingAttributes].

    Assurez-vous que les jeux d'attributs requis pour le piping sont ajoutés (comme indiqué dans le fichier ptb, en fonction du client).

    Le type, le numéro et le rôle de ces attributs peuvent être adaptés en fonction du fichier ptb.

    Bloc [CadPipingAttributes] en ifugnx.cfg doit alors également être adapté en conséquence.

    [CadPipingAttributes]
    #:VALS_S;
    NPS(isInchDoc)=?GetObject("iface.ugnx.piping").GetLargestDiamValue(_METAOBJ)
    
    NPS.CUSTOM(isInchDoc)=type.number
    
    DN(isMmDoc)=?GetObject("iface.ugnx.piping").GetLargestDiamValue(_METAOBJ)
    
    DN.CUSTOM(isMmDoc)=type.number
    
    ISOGEN_SKEY=?chr(34)+_FORMAT_DOC("<CLASSPROP(cns,CNSPIPING,CNS_PIPE_PART_ISOGEN_CODE)>")
     .value()+chr(34)
    
    ISOGEN_COMPONENT_ID=?_FORMAT_DOC(chr(34)+"<CLASSPROP(cns,CNSPIPING,CNS_PIPE_PART_
     DESIGNATION)>"+chr(34)).value()
    
    CONNECTION_TYPE=?chr(34)+_FORMAT_DOC("<CLASSPROP(cns,CNSPIPING,CNS_PIPE_
     PART_TYPE)>").value()+chr(34)
    
    DESCRIPTION=?chr(34)+_FORMAT_0((_ATTR("LINA"))).value()+chr(34)
    
    PART_NUMBER=?chr(34)+_ATTR("NB")+chr(34)
    
    PART_NAME=?chr(34)+_FORMAT_0("<GenNAME><MATERIAL(_)>").toFileName("_").
     RepChar("!","_").add(".prt").value()+chr(34)
    
    PART_NUMBER(tcActive)=%TC_ItemId%
    
    PART_NAME(tcActive)=%TC_ItemName%
    

  • "DocAfterCreate(is3dpart)"

    La DocAfterCreate(is3dpart) Création L’option est déjà présente et activée par défaut :

    DocAfterCreate(is3dpart)=GetObject("iface.ugnx.piping").CreatePTBEntry