Community
Civil 3D Customization
Welcome to Autodesk’s AutoCAD Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Part Data map to Property Sets

14 REPLIES 14
SOLVED
Reply
Message 1 of 15
Anonymous
2341 Views, 14 Replies

Part Data map to Property Sets

Anonymous
Not applicable

civil 3d.PNG

Is there a way to map the material value (Reinforce Concrete) in part properties to property set.

any help please.

 

Result="--"
On Error Resume Next
Set oApp=GetObject(, "AutoCAD.Application")
Set oCivilApp=oApp.GetInterfaceObject("AeccXUiLand.AeccApplication.12.0")
Set obj=oCivilApp.ActiveDocument.HandleToObject("[Handle]")
RESULT=obj.Material

0 Likes

Part Data map to Property Sets

civil 3d.PNG

Is there a way to map the material value (Reinforce Concrete) in part properties to property set.

any help please.

 

Result="--"
On Error Resume Next
Set oApp=GetObject(, "AutoCAD.Application")
Set oCivilApp=oApp.GetInterfaceObject("AeccXUiLand.AeccApplication.12.0")
Set obj=oCivilApp.ActiveDocument.HandleToObject("[Handle]")
RESULT=obj.Material

14 REPLIES 14
Message 2 of 15
Civil3DReminders_com
in reply to: Anonymous

Civil3DReminders_com
Mentor
Mentor

Yes, it is possible. Do a search for Architecture (or MEP) and Property Sets and there are many code examples available. This code has how to get the part data: http://adndevblog.typepad.com/infrastructure/2012/09/how-to-set-pipe-network-parts-data-fields-partd...

 

There might be something on my blog if you want VBA, but I'm not 100% sure though.

Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni
0 Likes

Yes, it is possible. Do a search for Architecture (or MEP) and Property Sets and there are many code examples available. This code has how to get the part data: http://adndevblog.typepad.com/infrastructure/2012/09/how-to-set-pipe-network-parts-data-fields-partd...

 

There might be something on my blog if you want VBA, but I'm not 100% sure though.

Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni
Message 3 of 15
Anonymous
in reply to: Civil3DReminders_com

Anonymous
Not applicable

Hi,

 

I found this https://forums.autodesk.com/t5/autocad-civil-3d-customization/get-pipe-material-from-code/m-p/254021....

 

How can i incorporate below code to the formula shown in the image? is that possible?

 

df = PartData.GetDataFieldBy(fieldname)
df.Value

 

 civil 3d_2.PNG

 

Any help please.

 

0 Likes

Hi,

 

I found this https://forums.autodesk.com/t5/autocad-civil-3d-customization/get-pipe-material-from-code/m-p/254021....

 

How can i incorporate below code to the formula shown in the image? is that possible?

 

df = PartData.GetDataFieldBy(fieldname)
df.Value

 

 civil 3d_2.PNG

 

Any help please.

 

Message 4 of 15
Civil3DReminders
in reply to: Anonymous

Civil3DReminders
Collaborator
Collaborator
Accepted solution
RESULT="--"
On Error Resume Next
Set oApp=GetObject(, "AutoCAD.Application")
Set oCivilApp=oApp.GetInterfaceObject("AeccXUiLand.AeccApplication.11.0")
Set obj=oCivilApp.ActiveDocument.ObjectIdToObject("[ObjectID]")
RESULT=obj.PartDataRecord.FindByContext(300).Tag

You can find the list of standard Context here: http://blog.civil3dreminders.com/2016/03/freaking-context-values.html if you want to use a different value.

RESULT="--"
On Error Resume Next
Set oApp=GetObject(, "AutoCAD.Application")
Set oCivilApp=oApp.GetInterfaceObject("AeccXUiLand.AeccApplication.11.0")
Set obj=oCivilApp.ActiveDocument.ObjectIdToObject("[ObjectID]")
RESULT=obj.PartDataRecord.FindByContext(300).Tag

You can find the list of standard Context here: http://blog.civil3dreminders.com/2016/03/freaking-context-values.html if you want to use a different value.

Message 5 of 15
Anonymous
in reply to: Civil3DReminders

Anonymous
Not applicable

This is what i'm looking for...Thanks you!!!!

0 Likes

This is what i'm looking for...Thanks you!!!!

Message 6 of 15
Anonymous
in reply to: Civil3DReminders

Anonymous
Not applicable

Hi,

 

i have this list of context but i cannot find the context value for pressure pipe material. i tried the 300 for context value  but it only works for structure.

 

http://docs.autodesk.com/CIV3D/2014/ENU/API_Reference_Guide/html/96ac3273-fbeb-5752-d806-1e92a7e9d76...

 

Any Idea?

0 Likes

Hi,

 

i have this list of context but i cannot find the context value for pressure pipe material. i tried the 300 for context value  but it only works for structure.

 

http://docs.autodesk.com/CIV3D/2014/ENU/API_Reference_Guide/html/96ac3273-fbeb-5752-d806-1e92a7e9d76...

 

Any Idea?

Message 7 of 15
Civil3DReminders_com
in reply to: Anonymous

Civil3DReminders_com
Mentor
Mentor
  public enum PressurePartContextType
  {
    CatalogId = 700,
    PartType = 701,
    PartDomain = 702,
    PID = 703,
    PartFamilyId = 704,
    PartFamilyName = 705,
    IdType = 706,
    CompatibleStandard = 707,
    ConnectionPointCount = 708,
    Description = 709,
    DiameterNominal = 710,
    FidManufacturer = 711,
    IdCoatingInside = 712,
    IdCoatingOutside = 713,
    IdMaterial = 714,
    ModelName = 715,
    PressureClass = 716,
    PressureMax = 717,
    Schedule = 718,
    Sdr = 719,
    Series = 720,
    StrengthClass = 721,
    ThicknessClass = 722,
    Version = 723,
    ConnectionPointDeflection = 724,
    ConnectionPointEngagementLength = 725,
    ConnectionPointIdJointEndType = 726,
    ConnectionPointNominalDiameter = 727,
    ConnectionPointOuterDiameter = 728,
    ConnectionPointWallThickness = 729,
    IdTypeDescription = 730,
    PipeCutLength = 800,
    PipeDiamterInside = 801,
    PipeDiameterOutside = 802,
    PipeMinFlexRadius = 803,
    PipeThickness = 804,
    FittingAngle = 850,
    FittingBranchAngle1 = 851,
    FittingBranchAngle2 = 852,
    FittingCurveRadius = 853,
    FittingCutbackAngle = 854,
    AppurtIdSize = 900,
    AppurtOutCon1Dia = 901,
    AppurtOutCon2Dia = 902,
    AppurtOutCon3Dia = 903,
    AppurtIdCoolingMethod = 904,
    AppurtIdPowerRequirement = 905,
    AppurtIdPrimingMethod = 906,
    AppurtPrimingRequired = 907,
    AppurtValveActuator = 908,
  }

Although I'm not sure if they will work. 

Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni
0 Likes

  public enum PressurePartContextType
  {
    CatalogId = 700,
    PartType = 701,
    PartDomain = 702,
    PID = 703,
    PartFamilyId = 704,
    PartFamilyName = 705,
    IdType = 706,
    CompatibleStandard = 707,
    ConnectionPointCount = 708,
    Description = 709,
    DiameterNominal = 710,
    FidManufacturer = 711,
    IdCoatingInside = 712,
    IdCoatingOutside = 713,
    IdMaterial = 714,
    ModelName = 715,
    PressureClass = 716,
    PressureMax = 717,
    Schedule = 718,
    Sdr = 719,
    Series = 720,
    StrengthClass = 721,
    ThicknessClass = 722,
    Version = 723,
    ConnectionPointDeflection = 724,
    ConnectionPointEngagementLength = 725,
    ConnectionPointIdJointEndType = 726,
    ConnectionPointNominalDiameter = 727,
    ConnectionPointOuterDiameter = 728,
    ConnectionPointWallThickness = 729,
    IdTypeDescription = 730,
    PipeCutLength = 800,
    PipeDiamterInside = 801,
    PipeDiameterOutside = 802,
    PipeMinFlexRadius = 803,
    PipeThickness = 804,
    FittingAngle = 850,
    FittingBranchAngle1 = 851,
    FittingBranchAngle2 = 852,
    FittingCurveRadius = 853,
    FittingCutbackAngle = 854,
    AppurtIdSize = 900,
    AppurtOutCon1Dia = 901,
    AppurtOutCon2Dia = 902,
    AppurtOutCon3Dia = 903,
    AppurtIdCoolingMethod = 904,
    AppurtIdPowerRequirement = 905,
    AppurtIdPrimingMethod = 906,
    AppurtPrimingRequired = 907,
    AppurtValveActuator = 908,
  }

Although I'm not sure if they will work. 

Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni
Message 8 of 15
Anonymous
in reply to: Civil3DReminders_com

Anonymous
Not applicable

Hi,

 

Thanks for the reply.

Not working.. maybe the Code is not right.

maybe the PartDataRecord is only for structure.

 

civil 3d_3.PNG

 

 

0 Likes

Hi,

 

Thanks for the reply.

Not working.. maybe the Code is not right.

maybe the PartDataRecord is only for structure.

 

civil 3d_3.PNG

 

 

Message 9 of 15
Civil3DReminders_com
in reply to: Anonymous

Civil3DReminders_com
Mentor
Mentor

If you can find the help file for AeccPressurePipesMgd I might be able to help figure it out. My Google with that help is failing me. 

 

The above code will work with gravity pipes and structures.

Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni
0 Likes

If you can find the help file for AeccPressurePipesMgd I might be able to help figure it out. My Google with that help is failing me. 

 

The above code will work with gravity pipes and structures.

Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni
Message 11 of 15
Anonymous
in reply to: Anonymous
Message 12 of 15

Jeff_M
Consultant
Consultant
According to a post by,Partha Sarkar a few years ago, no help file has been developed for the PressuerPipes API due to it undergoing changes. https://forums.autodesk.com/t5/autocad-civil-3d-customization/aecc-appurtenance/m-p/4943688#M8961 and here we are, 3 years later, with pretty much the same thing.
Jeff_M, also a frequent Swamper
EESignature
0 Likes

According to a post by,Partha Sarkar a few years ago, no help file has been developed for the PressuerPipes API due to it undergoing changes. https://forums.autodesk.com/t5/autocad-civil-3d-customization/aecc-appurtenance/m-p/4943688#M8961 and here we are, 3 years later, with pretty much the same thing.
Jeff_M, also a frequent Swamper
EESignature
Message 13 of 15
Anonymous
in reply to: Jeff_M

Anonymous
Not applicable

Hi,

 

Does it mean that this is the dead end for pressure pipes.

Is there any other way to map the part data to property sets?

 

Thanks,

0 Likes

Hi,

 

Does it mean that this is the dead end for pressure pipes.

Is there any other way to map the part data to property sets?

 

Thanks,

Message 14 of 15
Jeff_M
in reply to: Anonymous

Jeff_M
Consultant
Consultant
I think that the problem you are running into is that no COM API for PressurePipes has been provided, only the .NET managed API. Therefor no InterfaceObject to get, so I don't know of any way to use PropertySets with PressurePipes.
Jeff_M, also a frequent Swamper
EESignature
0 Likes

I think that the problem you are running into is that no COM API for PressurePipes has been provided, only the .NET managed API. Therefor no InterfaceObject to get, so I don't know of any way to use PropertySets with PressurePipes.
Jeff_M, also a frequent Swamper
EESignature
Message 15 of 15
Anonymous
in reply to: Jeff_M

Anonymous
Not applicable

Thanks for all the reply,

I hope they develop a help file or just tell us what is the future for PressurePipes.

I searching on this forum an its been 4 years and counting that this situation occur.

0 Likes

Thanks for all the reply,

I hope they develop a help file or just tell us what is the future for PressurePipes.

I searching on this forum an its been 4 years and counting that this situation occur.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report