Change a type of Flanged/Nozzle of equipment with a NOZZLE Catalog

Change a type of Flanged/Nozzle of equipment with a NOZZLE Catalog

pierre_ramez
Advocate Advocate
2,503 Views
7 Replies
Message 1 of 8

Change a type of Flanged/Nozzle of equipment with a NOZZLE Catalog

pierre_ramez
Advocate
Advocate

=English=

Hello everyone,

 

I work on equipment composed of rotating flange. The "Add a tap" function on equipment only offers fixed flanges and no loose/rotating flanges.

 

In P3D 2023, I created a part on one of the project drawings.

In Spec Editor, I created a part in the "NOZZLE Catalog.acat" catalog (SCREEN1 & 2).

 

However, it does not offer me the tap on P3D when I use the "Add a tap" function (SCREEN 3).

 

In Spec Editor, if I write:

pierre_ramez_2-1717512850900.png

The created flanges appear but the shape is not good. The shape remains as that of "Nozzle, flanged, 80ND, C,10 DIN2632" 

 

pierre_ramez_4-1717513305421.png

 

Do you have a solution ? Or do you know of another way to have rotating flanges on equipment?

Sincerely,

 

Pierre.

 

--------------------------------------------------------

=French=

Bonjour à tous,

 

Je travaille sur des équipements composées de bride tournante. La fonction "Ajouter un piquage" sur des équipements ne propose que des brides fixes et pas de brides folles/tournantes. 

 

Dans P3D 2023, j'ai crée une pièce sur un des dessins du projet.

Dans Spec Editor, j'ai crée une pièce dans le catalogue "NOZZLE Catalog.acat" ( SCREEN1 & 2). 

 

Cependant, il ne me propose pas le piquage sur P3D lors que j'utilise la fonction "Ajouter un piquage" ( SCREEN 3).

 

Dans Spec Editor, si je mets : 

pierre_ramez_2-1717512850900.png

Les brides créées apparaissent mais la forme n'est pas bonne. La forme reste comme celle de "Nozzle, flanged, 80ND, C,10 DIN2632" 

pierre_ramez_3-1717513290908.png

 

 

Avez vous une solution ? Ou connaissez vous un autre moyen d'avoir des brides tournantes sur des équipements ?

Cordialement,

 

Pierre.

0 Likes
Accepted solutions (2)
2,504 Views
7 Replies
Replies (7)
Message 2 of 8

DVaquand
Mentor
Mentor

Hello @pierre_ramez 

 

In the catalog, custom nozzles based on blocks is not supported.

 

== French ==

 

Dans le catalogue, les piquages personnalisés basés sur des blocs ne sont pas gérés.

 

Cordialement
Dominique VAQUAND
www.dovaq.fr

Cordialement
Dominique VAQUAND
www.dovaq.fr

Cette publication vous a-t-elle été utile ? N’hésitez pas à attribuer la mention J’aime à cette publication.
Avez-vous obtenu la réponse à votre question ? Cliquez ensuite sur le bouton ACCEPTER LA SOLUTION.

EESignature

Message 3 of 8

quan_hm
Collaborator
Collaborator

Did you try to make your own Python script nozzle?. You can just edit the existing one and add more geometry to the flange.

Hoang Minh Quan - Lead Developer

Autodesk Store for IntegaDesign Content

Smart Solutions by IntegaDesign

Plant 3D • CAD Optimization • Automation
Message 4 of 8

pierre_ramez
Advocate
Advocate
Accepted solution

@DVaquand Je comprends mieux pourquoi ça ne fonctionne pas... 😞

 

@quan_hm 

I don't know the python language very well. I found a code from Rick France however it is not a rotating flange. The python code will look for a flange in the default P3D catalog (file attachment/ python code in at the bottom of the message) . However, unless I am mistaken, no bridle allows you to put a collar. The only possibility will be to rotate the CPFWR_F_SF flange by 180°.
 
pierre_ramez_0-1717657171319.png

Do you know how to modify the code or do you have manuals to learn how to create pyhon scripts to make parts? Also, are there free or paid script lists?

 

Python code :

from aqa.math import *
from varmain.flangesub.cpfwr_f_sf import *
from varmain.pipesub.cpp_util import *
from varmain.primitiv import *
from varmain.custom import *

@activate(Group="StraightNozzle,Nozzle", FirstPortEndtypes="FL", TooltipShort="Nozzle SO (FLG)", TooltipLong="Nozzle Slip-On Flange", LengthUnit="in", Ports="2")
@group("MainDimensions")
@param(D=LENGTH, TooltipLong="Nominal outside diameter")
@param(L=LENGTH, TooltipLong="Length between connection points")
@param(L1=LENGTH, TooltipLong="Length thru hub")
@param(B1=LENGTH, TooltipLong="Flange sheet thickness")
@param(D11=LENGTH, TooltipLong="Outside diameter of the flange")
@param(D12=LENGTH, TooltipLong="Bore diameter")
@param(D13=LENGTH, TooltipLong="Hub diameter")
@param(I1=LENGTH, TooltipLong="Length that is needed to insert by opposite part slip on connection at port 2")

def Nozzle_SO_Flange(s, D = 8.625, L = -9.0, L1 = 1.75, B1 = 1.12, D11 = 13.5, D12 = 8.72, D13 = 9.69, I1 = 1.59, **kw😞
   #nozzle
    PIPE = CYLINDER(s, R=D/2, H=L, O=0).rotateY(90)
    FLG = CPFWR_F_SF(s, L=L1, B=B1, D1=D11, D2=D12, D3=D13, I=I1)
    PIPE.uniteWith(FLG)
    FLG.erase()
   #port points
    s.setPoint((0.0, 0.0, 0.0), (-1.0, 0.0, 0.0))
    s.setPoint((L, 0.0, 0.0), (1.0, 0.0, 0.0))

 

pierre_ramez_1-1717657694037.png

 

 

 

 

 
0 Likes
Message 5 of 8

pierre_ramez
Advocate
Advocate

I found the solution :

Folow a video by Hagerman & Companyhttps://www.youtube.com/watch?v=3ZWD2OtmdnU 

In the script add : 

FLG.rotateY(180)
"
def Nozzle_SO_Flange(s, D = 8.625, L = -9.0, L1 = 1.75, B1 = 1.12, D11 = 13.5, D12 = 8.72, D13 = 9.69, I1 = 1.59, **kw😞
   #nozzle
    PIPE = CYLINDER(s, R=D/2, H=L, O=0).rotateY(90)
    FLG = CPFWR_F_SF(s, L=L1, B=B1, D1=D11, D2=D12, D3=D13, I=I1)
    FLG.rotateY(180)
    PIPE.uniteWith(FLG)
    FLG.erase()
   #port points
    s.setPoint((0.0, 0.0, 0.0), (-1.0, 0.0, 0.0))
    s.setPoint((L, 0.0, 0.0), (1.0, 0.0, 0.0))
"
pierre_ramez_0-1717664957650.png

 

 
Message 6 of 8

pierre_ramez
Advocate
Advocate

I have a problem with the port point. The connection is not in the right place. It is done on the face of the flange on the equipment side.

pierre_ramez_0-1717673816301.png

 

I try :

1) 

   #port points
    s.setPoint((L1, 0.0, 0.0), (-1.0, 0.0, 0.0))
    s.setPoint((L, 0.0, 0.0), (1.0, 0.0, 0.0))

 

L1 = lenght collar + flanged

2) 

   #port points
    s.setPoint((0.0, 0.0, 0.0), (-L1, 0.0, 0.0))
    s.setPoint((L, 0.0, 0.0), (1.0, 0.0, 0.0))

3)

   #port points
    s.setPoint((0.0, 0.0, 0.0), (1.0, 0.0, 0.0))
    s.setPoint((L, 0.0, 0.0), (-1.0, 0.0, 0.0))
 
Nothing works, someone have a idea ?
0 Likes
Message 7 of 8

quan_hm
Collaborator
Collaborator
Accepted solution

try:

    s.setPoint((-L1, 0.0, 0.0), (-1.0, 0.0, 0.0))
    s.setPoint((L, 0.0, 0.0), (1.0, 0.0, 0.0))
Hoang Minh Quan - Lead Developer

Autodesk Store for IntegaDesign Content

Smart Solutions by IntegaDesign

Plant 3D • CAD Optimization • Automation
Message 8 of 8

pierre_ramez
Advocate
Advocate

I forgot to close and restart P3D... 

You're right, the good set is :

 #port points
    s.setPoint((-L1, 0.0, 0.0), (-1.0, 0.0, 0.0))
    s.setPoint((L, 0.0, 0.0), (1.0, 0.0, 0.0))
 
Thanks you @quan_hm and @DVaquand for your time 🙂