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
Solved! Go to Solution.
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
Solved! Go to Solution.
Solved by Civil3DReminders. Go to Solution.
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.
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.
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
Any help please.
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
Any help please.
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.
This is what i'm looking for...Thanks you!!!!
This is what i'm looking for...Thanks you!!!!
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.
Any Idea?
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.
Any Idea?
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.
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.
Hi,
Thanks for the reply.
Not working.. maybe the Code is not right.
maybe the PartDataRecord is only for structure.
Hi,
Thanks for the reply.
Not working.. maybe the Code is not right.
maybe the PartDataRecord is only for structure.
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.
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.
Hi,
Sorry i'm no help for this. i didn't even know what i'm looking for.
This is what i got.
https://forums.autodesk.com/t5/autocad-civil-3d-customization/pressure-pipes-api/td-p/5299767
Hi,
Sorry i'm no help for this. i didn't even know what i'm looking for.
This is what i got.
https://forums.autodesk.com/t5/autocad-civil-3d-customization/pressure-pipes-api/td-p/5299767
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,
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,
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.
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.