admin 发表于 2014-6-1 19:59:52

建议: UG NX 二次开发中大家尽量使用新的类不要使用废弃的

太多的类,方法被新的替代掉,一般来讲,前几个版本勉强保留,到后面就删除了,开发的时候选择新的类,凡是deprecated的都不要用。比如sectionsurface的创建,使用带有Ex的 Features.SectionSurfaceBuilderEx

下面举个例子 你可以看看多少类被替换了!


NamespaceClassRelease DeprecatedReplacementCan be removed in next major release of NX
NXOpenPartFamilyManager9.0.0Use PartFamily.TemplateManager instead.No
NXOpenPartFamilyMemberData9.0.0Use PartFamily.InstanceDefinition and PartFamily.TemplateManager instead.No
NXOpenPartFamilyMemberValues9.0.0Use PartFamily.InstanceDefinition instead.No
NXOpen.AnnotationsCustomSymbolData9.0.0Use Annotations.DraftingCustomSymbolBuilder for Drafting Custom Symbol and Annotations.PmiCustomSymbolBuilder for PMI Custom Symbol objects.No
NXOpen.AnnotationsCustomSymbolTextData9.0.0Use Annotations.MasterSymbolListItemBuilder instead. Use Annotations.BaseCustomSymbolBuilder.Texts to query list of custom symbol texts.No
NXOpen.AnnotationsMasterCustomSymbolData9.0.0Use Annotations.MasterSymbolBuilder instead.No
NXOpen.CAEDurabilityDamageReportBuilder8.0.1Use CAE.DurabilityResultsReportBuilder instead.Yes
NXOpen.CAELaminateMetaSol8.0.0Use CAE.LaminateSpreadsheetReport and CAE.LaminateGraphicalReport and CAE.LaminateQuickReport instead.Yes
NXOpen.CAELaminateQuickPostReport8.0.0Use CAE.LaminateSpreadsheetReport and CAE.LaminateGraphicalReport and CAE.LaminateQuickReport instead.Yes
NXOpen.CamCamGeneralPropertiesBuilder9.0.1Use CAM.GeneralPropertiesBuilder instead.No
NXOpen.CAMCustomLoops9.0.0Use NXOpen.Features.PatchOpeningsBuilder instead.No
NXOpen.CAMCustomLoopSet9.0.0Use NXOpen.Features.PatchOpeningsBuilder instead.No
NXOpen.FeaturesBridgeCurveBuilder8.5.0Use Features.BridgeCurveBuilderEx instead.Yes
NXOpen.FeaturesIBoolean4.0.0Use Features.BooleanFeature instead.Yes
NXOpen.FeaturesIntersect4.0.0Use Features.BooleanFeature instead.Yes
NXOpen.FeaturesSectionSurfaceBuilder9.0.0Use Features.SectionSurfaceBuilderEx instead.No
NXOpen.FeaturesStudioSplineBuilder8.0.0Use Features.StudioSplineBuilderEx instead.Yes
NXOpen.FeaturesStudioXformBuilder8.5.0Use Features.StudioXformBuilderEx instead.Yes
NXOpen.FeaturesSubtract4.0.0Use Features.BooleanFeature instead.Yes
NXOpen.FeaturesUnite4.0.0Use Features.BooleanFeature instead.Yes
NXOpen.Features.ShipDesignShipFlatPattern8.0.0Use Features.ShipDesign.PlatePreparationBuilder.CreatePlatePreparationBuilder() instead.Yes
NXOpen.Features.ShipDesignShipFlatPatternBuilder8.0.0Use Features.ShipDesign.PlatePreparationBuilder instead.Yes
NXOpen.GeometricAnalysisCurveAnalysisCombsBuilder8.5.0Use GeometricAnalysis.CurveCurvatureAnalysis.Yes
NXOpen.GeometricAnalysisCurveAnalysisInflectionsBuilder8.5.0Use GeometricAnalysis.CurveCurvatureAnalysis.Yes
NXOpen.GeometricAnalysisCurveAnalysisPeaksBuilder8.5.0Use GeometricAnalysis.CurveCurvatureAnalysis.Yes
NXOpen.GeometricAnalysisCurveAnalysisRecord8.5.0Use GeometricAnalysis.CurveAnalysisDisplay.Yes
NXOpen.GeometricUtilitiesFaceSetDataCollection8.5.0This class is never used and can be safely removedYes
NXOpen.GeometricUtilitiesPatternClocking8.0.0This functionality is no longer supported.Yes
NXOpen.PDMPartCreationObjectAttributePropertiesBuilder8.5.0Use AttributePropertiesBuilder instead.Yes
NXOpen.PreferencesSessionVisualizationColorSetting8.5.0Use Preferences.PartVisualizationColorSetting instead.Yes
NXOpen.PreferencesSessionWorkPlane8.5.0See Preferences.SessionVisualizationEmphasis.Yes
NXOpen.RoutingCopeCornerBuilder8.0.0Use Routing.AssignCornerBuilder instead.Yes


页: [1]
查看完整版本: 建议: UG NX 二次开发中大家尽量使用新的类不要使用废弃的