Flash Object BASE tag attributes

本文介绍了解决FlashPlayer8.0在加载外部文件时遇到的问题。当Flash被嵌入到其他应用程序中时,可能会出现无法正确加载同目录下文件的情况。文章提供了设置Flash对象Base属性的方法来解决此问题。
 在将Flash对象加入到其他应用程序中,Flash Player8.0会存在Flash读取不到指定的外部文件,例如:在Flash程序开始时我需要载入一个配置文件Config.xml,这个文件和swf文件在同一个目录,当我把swf包含到vb应用程序时,载入Config.xml则会失败,这个时候,需要设置Flash对象的Base属性,并指定到于swf同目录里,在VB可以使用这样一个语句:
[color="#0000ff"]FlashObject.Base = App.Path + "/flashApp.swf"[/color]
本文转自:http://www.5uflash.com/flashjiaocheng/Flashaschengxu/150.html
// 获取第一个选择的点 NXOpen::Point* selectedPoint = dynamic_cast<NXOpen::Point*>(selectedPoints[0]); if (selectedPoint) { // 获取点的坐标 NXOpen::Point3d pointCoord = selectedPoint->Coordinates(); // 按照录制代码的方式创建几何体组 // 查找父级几何体组 NXOpen::CAM::NCGroup* parentGeometryGroup = dynamic_cast<NXOpen::CAM::NCGroup*>(workPart->CAMSetup()->CAMGroupCollection()->FindObject("GEOMETRY")); // 创建新的几何体组(MCS) NXOpen::CAM::NCGroup* mcsGroup; mcsGroup = workPart->CAMSetup()->CAMGroupCollection()->CreateGeometry( parentGeometryGroup, "MICH-MB", "MCS_MILL", NXOpen::CAM::NCGroupCollection::UseDefaultNameTrue, "MCS_MILL"); // 转换为OrientGeometry NXOpen::CAM::OrientGeometry* orientGeometry = dynamic_cast<NXOpen::CAM::OrientGeometry*>(mcsGroup); if (!orientGeometry) { theUI->NXMessageBox()->Show("错误", NXMessageBox::DialogTypeError, "MCS对象类型转换失败"); return errorCode; } // 创建MillOrientGeomBuilder NXOpen::CAM::MillOrientGeomBuilder* millOrientGeomBuilder = workPart->CAMSetup()->CAMGroupCollection()->CreateMillOrientGeomBuilder(orientGeometry); // 如果需要获取 MCS 的 tag_t tag_t mcsTag = mcsGroup->Tag();没有正确的获取到坐标的tag_t,参考下头文件:“#ifndef NXOpen_CAM_NCGROUP_HXX_INCLUDED #define NXOpen_CAM_NCGROUP_HXX_INCLUDED //-------------------------------------------------------------------------- // Copyright 2024 Siemens //-------------------------------------------------------------------------- // Header for C++ interface to JA API //-------------------------------------------------------------------------- // // Source File: // CAM_NCGroup.ja // // Generated by: // apiwrap // // WARNING: // This file is automatically generated - do not edit by hand // #ifdef _MSC_VER #pragma once #endif #include <NXOpen/NXDeprecation.hxx> #include <vector> #include <NXOpen/NXString.hxx> #include <NXOpen/Callback.hxx> #include <NXOpen/CAM_CAMObject.hxx> #include <NXOpen/libnxopencpp_cam_exports.hxx> #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable:4996) #endif #ifdef __GNUC__ #pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif namespace NXOpen { namespace CAM { class NCGroup; } namespace CAM { class CAMObject; } class INXObject; namespace CAM { class _NCGroupBuilder; class NCGroupImpl; /** Represents a NC group <br> To obtain an instance of this class use @link NXOpen::CAM::NCGroupCollection NXOpen::CAM::NCGroupCollection@endlink <br> <br> Created in NX4.0.0. <br> */ class NXOPENCPP_CAMEXPORT NCGroup : public NXOpen::CAM::CAMObject { private: NCGroupImpl * m_ncgroup_impl; private: friend class _NCGroupBuilder; protected: NCGroup(); public: ~NCGroup(); /** Get parent of the group @return parent of this group <br> Created in NX7.5.0. <br> <br> License requirements : None */ public: NXOpen::CAM::NCGroup * GetParent ( ); /** Get all members of the group(single level) @return array of members <br> Created in NX7.5.0. <br> <br> License requirements : None */ public: std::vector<NXOpen::CAM::CAMObject *> GetMembers ( ); /** Finds the CAM.CamObject object with the given identifier as recorded in a journal. @return the found object <br> Created in NX11.0.1. <br> <br> License requirements : cam_base ("CAM BASE") */ public: NXOpen::INXObject * FindObject ( const NXString & sid /** the name of the object */ ); /** Finds the CAM.CamObject object with the given identifier as recorded in a journal. @return the found object <br> Created in NX11.0.1. <br> <br> License requirements : cam_base ("CAM BASE") */ NXOpen::INXObject * FindObject ( const char * sid /** the name of the object */ ); }; } } #ifdef _MSC_VER #pragma warning(pop) #endif #ifdef __GNUC__ #ifndef NX_NO_GCC_DEPRECATION_WARNINGS #pragma GCC diagnostic warning "-Wdeprecated-declarations" #endif #endif #undef EXPORTLIBRARY #endif ”“#ifndef NXOpen_CAM_CAMOBJECT_HXX_INCLUDED #define NXOpen_CAM_CAMOBJECT_HXX_INCLUDED //-------------------------------------------------------------------------- // Copyright 2024 Siemens //-------------------------------------------------------------------------- // Header for C++ interface to JA API //-------------------------------------------------------------------------- // // Source File: // CAM_CAMObject.ja // // Generated by: // apiwrap // // WARNING: // This file is automatically generated - do not edit by hand // #ifdef _MSC_VER #pragma once #endif #include <NXOpen/NXDeprecation.hxx> #include <vector> #include <NXOpen/NXString.hxx> #include <NXOpen/Callback.hxx> #include <NXOpen/CAM_Path.hxx> #include <NXOpen/NXObject.hxx> #include <NXOpen/libnxopencpp_cam_exports.hxx> #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable:4996) #endif #ifdef __GNUC__ #pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif namespace NXOpen { namespace CAM { class CAMObject; } namespace CAM { class Path; } class NXObject; namespace CAM { class _CAMObjectBuilder; class CAMObjectImpl; /** Represents interface for all CAM Object <br> To create or edit an instance of this class, use @link NXOpen::CAM::ParamBuilder NXOpen::CAM::ParamBuilder @endlink <br> <br> Created in NX4.0.0. <br> */ class NXOPENCPP_CAMEXPORT CAMObject : public NXOpen::NXObject { /** The unit of feed rate */ public: enum FeedRateUnit { FeedRateUnitNone/** no feed rate unit*/, FeedRateUnitPerMinute/** use per minute as the feed rate unit*/, FeedRateUnitPerRevolution/** use per revolution as the feed rate unit */ }; /** Represents the CAM attribute type. */ public: enum Attr { AttrProjDiffTaxis/** proj diff taxis */ = 1, AttrProfileFlipMside/** profile flip mside */ , AttrBndSplineTangent/** bnd spline tangent */ , AttrBlankNormalDiffTaxis/** blank normal diff taxis */ , AttrBndHasSleepObj/** bnd has sleep obj */ , AttrClrnrNotParallelTaxis/** clrnr not parallel taxis */ , AttrBndNotParallelFloor/** bnd not parallel floor */ , AttrFloorNotUpToDate/** floor not up to date */ , AttrSingleProfileWithFirstCut/** single profile with first cut */ , AttrCutterConversionProblem/** cutter conversion problem */ , AttrPredefinedDepthConversionProblem/** predefined depth conversion problem */ , AttrAcceptDrivePosition/** accept drive position */ = 100, AttrReparametrization/** reparametrization */ = 110, AttrBetweenFromStart/** between from start */ = 120, AttrCurveCutRange/** curve cut range */ = 130, AttrFixGssmCornerData/** fix gssm corner data */ = 140, AttrPlmConversion/** plm conversion */ = 150, AttrPlmFeedcomp/** plm feedcomp */ , AttrPlmFillet/** plm fillet */ , AttrPlmSlowdown/** plm slowdown */ , AttrPlmGeometry/** plm geometry */ , AttrWedmPoints/** wedm points */ = 160, AttrCavityMillInheritTrimBnds/** cavity mill inherit trim bnds */ = 170, AttrRtdObsolete/** rtd obsolete */ = 1000, AttrZlevelHolderParamChange/** zlevel holder param change */ = 2000, AttrNcmObsoleteSeqControl/** ncm obsolete seq control */ = 2100, AttrNcmObsoleteCustomFeed/** ncm obsolete custom feed */ , AttrNcmObsoleteLocalRetract/** ncm obsolete local retract */ , AttrNcmClearTraversalZero/** ncm clear traversal zero */ , AttrNcmObsoleteEngretToClearance/** ncm obsolete engret to clearance */ , AttrGmcInvalidNxVersion/** gmc invalid nx version */ = 2201, AttrProbingInvalidNxVersion/** probing invalid nx version */ , AttrInspPathInvalidNxVersion/** insp path invalid nx version */ = 2300, AttrCustomDataGougingObsolete/** custom data gouging obsolete */ , AttrCustomDataGougingPartObsolete/** custom data gouging part obsolete */ , AttrCustomDataGougingDriveObsolete/** custom data gouging drive obsolete */ , AttrCustomDataIgnoreLoopsObsolete/** custom data ignore loops obsolete */ , AttrCustomDataIgnoreLoopsRemoved/** custom data ignore loops removed */ , AttrLimitToolRunOn/** limit tool run on */ = 2400, AttrScoprNcmChangeLinearNormalToPart/** scopr ncm change linear normal to part */ , AttrPossibleToolAxisProblem/** possible tool axis problem */ }; /** The status of the object */ public: enum Status { StatusComplete/** Object path has been output */, StatusRepost/** Object path must be post-processed */, StatusRegen/** Object path must be regenerated */, StatusApproved/** Object path has been approved as is */ = 4 }; /** Error Item */ public: struct ErrorItem { public: /** objecttag */ NXOpen::CAM::CAMObject * ObjectTag; public: /** errorcode */ int ErrorCode; public: ErrorItem() : ObjectTag(), ErrorCode() { } /** Constructor for the ErrorItem struct. */ public: ErrorItem(NXOpen::CAM::CAMObject * objectTagInitial /** objecttag */ , int errorCodeInitial /** errorcode */ ) : ObjectTag(objectTagInitial), ErrorCode(errorCodeInitial) { } }; /** Validation Types */ public: enum ValidationType { ValidationTypeGouge/** gouge */ = 1, ValidationTypeToolHolderCollision/** tool holder collision */ , ValidationTypeToolRapidCollision/** tool rapid collision */ , ValidationTypeHasPath/** has path */ , ValidationTypeSuspectPath/** suspect path */ , ValidationTypeFeedsSpeeds/** feeds speeds */ }; /** Validation Result */ public: enum ValidationResult { ValidationResultNotApplicable/** not applicable */ , ValidationResultOk/** ok */ , ValidationResultNotChecked/** not checked */ , ValidationResultFail/** fail */ }; private: CAMObjectImpl * m_camobject_impl; private: friend class _CAMObjectBuilder; protected: CAMObject(); public: ~CAMObject(); /** Set an integer value to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SetIntegerValue ( const NXString & title /** the name of the parameter index */, int value /** the integer value */ ); /** Set an integer value to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ void SetIntegerValue ( const char * title /** the name of the parameter index */, int value /** the integer value */ ); /** Set a real value to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SetRealValue ( const NXString & title /** the name of the parameter index */, double value /** the real value */ ); /** Set a real value to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ void SetRealValue ( const char * title /** the name of the parameter index */, double value /** the real value */ ); /** Set a string value to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SetStringValue ( const NXString & title /** the name of the parameter index */, const NXString & value /** the string value */ ); /** Set a string value to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ void SetStringValue ( const char * title /** the name of the parameter index */, const char * value /** the string value */ ); /** Set a boolean value to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SetBooleanValue ( const NXString & title /** the name of the parameter index */, bool value /** the boolean value */ ); /** Set a boolean value to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ void SetBooleanValue ( const char * title /** the name of the parameter index */, bool value /** the boolean value */ ); /** Set a object to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SetObject ( const NXString & title /** the name of the parameter index */, NXOpen::NXObject * value /** the object */ ); /** Set a object to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ void SetObject ( const char * title /** the name of the parameter index */, NXOpen::NXObject * value /** the object */ ); /** Set feed rate value and unit to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SetFeedRate ( const NXString & title /** the name of the parameter index */, double value /** the feed rate value */, NXOpen::CAM::CAMObject::FeedRateUnit unit /** the feed rate unit */ ); /** Set feed rate value and unit to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ void SetFeedRate ( const char * title /** the name of the parameter index */, double value /** the feed rate value */, NXOpen::CAM::CAMObject::FeedRateUnit unit /** the feed rate unit */ ); /** Set feed rate value and side to the parameter index for the object, side is only used in wire edm. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SetWireEdmFeedRate ( const NXString & title /** the name of the parameter index */, double value /** the feed rate value */, int side /** Inside = 0, Outside = 1 */ ); /** Set feed rate value and side to the parameter index for the object, side is only used in wire edm. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ void SetWireEdmFeedRate ( const char * title /** the name of the parameter index */, double value /** the feed rate value */, int side /** Inside = 0, Outside = 1 */ ); /** Set feed rate display color to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SetFeedRateColor ( const NXString & title /** the name of the paramter index */, int value /** the color number*/ ); /** Set feed rate display color to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ void SetFeedRateColor ( const char * title /** the name of the paramter index */, int value /** the color number*/ ); /** Set integer array value to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SetIntegerArrayValue ( const NXString & title /** the name of the parameter index */, const std::vector<int> & value /** the integer array */ ); /** Set integer array value to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ void SetIntegerArrayValue ( const char * title /** the name of the parameter index */, const std::vector<int> & value /** the integer array */ ); /** Set real array to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SetRealArrayValue ( const NXString & title /** the name of the parameter index */, const std::vector<double> & value /** the real array */ ); /** Set real array to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ void SetRealArrayValue ( const char * title /** the name of the parameter index */, const std::vector<double> & value /** the real array */ ); /** Set string array to the parameter index for the object <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SetStringArrayValue ( const NXString & title /** the name of the parameter index */, std::vector<NXString> & value /** the string array */ ); /** Set string array to the parameter index for the object <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ void SetStringArrayValue ( const char * title /** the name of the parameter index */, std::vector<NXString> & value /** the string array */ ); /** Set object array to the parameter index for the object <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SetObjectArrayValue ( const NXString & title /** the name of the parameter index */, const std::vector<NXOpen::NXObject *> & value /** the object array */ ); /** Set object array to the parameter index for the object <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ void SetObjectArrayValue ( const char * title /** the name of the parameter index */, const std::vector<NXOpen::NXObject *> & value /** the object array */ ); /** Get the integer value of the parameter index from the object. @return the integer value <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: int GetIntegerValue ( const NXString & title /** the name of the parameter index */ ); /** Get the integer value of the parameter index from the object. @return the integer value <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ int GetIntegerValue ( const char * title /** the name of the parameter index */ ); /** Get the real value of the parameter index from the object. @return the real value <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: double GetRealValue ( const NXString & title /** the name of the parameter index */ ); /** Get the real value of the parameter index from the object. @return the real value <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ double GetRealValue ( const char * title /** the name of the parameter index */ ); /** Get the boolean value of the parameter index from the object @return the boolean value <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: bool GetBooleanValue ( const NXString & title /** the name of the parameter index */ ); /** Get the boolean value of the parameter index from the object @return the boolean value <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ bool GetBooleanValue ( const char * title /** the name of the parameter index */ ); /** Get the string value of the parameter index from the object @return the string value <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: NXString GetStringValue ( const NXString & title /** the name of the parameter index */ ); /** Get the string value of the parameter index from the object @return the string value <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ NXString GetStringValue ( const char * title /** the name of the parameter index */ ); /** Get the object value of the parameter index from the object @return the object value <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: NXOpen::NXObject * GetObject ( const NXString & title /** the name of the parameter index */ ); /** Get the object value of the parameter index from the object @return the object value <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ NXOpen::NXObject * GetObject ( const char * title /** the name of the parameter index */ ); /** Get the feed rate value and unit of the parameter index from the object @return the feed rate unit <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: NXOpen::CAM::CAMObject::FeedRateUnit GetFeedRate ( const NXString & title /** the name of the parameter index */, double* value /** the feed rate value */ ); /** Get the feed rate value and unit of the parameter index from the object @return the feed rate unit <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ NXOpen::CAM::CAMObject::FeedRateUnit GetFeedRate ( const char * title /** the name of the parameter index */, double* value /** the feed rate value */ ); /** Get the feed rate value and side of the parameter index from the object, side is only used in wire edm. @return the feed rate side <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: int GetWireEdmFeedRate ( const NXString & title /** the name of the parameter index */, double* value /** the feed rate value */ ); /** Get the feed rate value and side of the parameter index from the object, side is only used in wire edm. @return the feed rate side <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ int GetWireEdmFeedRate ( const char * title /** the name of the parameter index */, double* value /** the feed rate value */ ); /** Get the feed rate color of the parameter index from the object. @return the color number <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: int GetFeedRateColor ( const NXString & title /** the name of the parameter index */ ); /** Get the feed rate color of the parameter index from the object. @return the color number <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ int GetFeedRateColor ( const char * title /** the name of the parameter index */ ); /** Get the integer array value of the parameter index from the object. @return the integer array <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: std::vector<int> GetIntegerArrayValue ( const NXString & title /** the name of the parameter index */ ); /** Get the integer array value of the parameter index from the object. @return the integer array <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ std::vector<int> GetIntegerArrayValue ( const char * title /** the name of the parameter index */ ); /** Get the real array value of the parameter index from the object. @return the real array <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: std::vector<double> GetRealArrayValue ( const NXString & title /** the name of the parameter index */ ); /** Get the real array value of the parameter index from the object. @return the real array <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ std::vector<double> GetRealArrayValue ( const char * title /** the name of the parameter index */ ); /** Get the string array value of the parameter index from the object. @return the string array <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: std::vector<NXString> GetStringArrayValue ( const NXString & title /** the name of the parameter index */ ); /** Get the string array value of the parameter index from the object. @return the string array <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ std::vector<NXString> GetStringArrayValue ( const char * title /** the name of the parameter index */ ); /** Get the object array value of the parameter index from the object. @return the object array <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: std::vector<NXOpen::NXObject *> GetObjectArrayValue ( const NXString & title /** the name of the parameter index */ ); /** Get the object array value of the parameter index from the object. @return the object array <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ std::vector<NXOpen::NXObject *> GetObjectArrayValue ( const char * title /** the name of the parameter index */ ); /** Get the status of the input object. @return the object's status <br> Created in NX6.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: NXOpen::CAM::CAMObject::Status GetStatus ( ); /** Remove a specific 911 attribute from an object. <br> Created in NX5.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void Remove911Attribute ( NXOpen::CAM::CAMObject::Attr attrId /** the attribute Id */ ); /** Remove all 911 attributes from an object. <br> Created in NX5.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void RemoveAll911Attributes ( ); /** Check if a 911 attribute exists in an object. @return true -- 911 attribute exists <br> Created in NX5.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: bool Has911Attribute ( NXOpen::CAM::CAMObject::Attr attrId /** the attribute Id */ ); /** Returns the path. Call @link NXOpen::CAM::CAMObject::SavePath NXOpen::CAM::CAMObject::SavePath@endlink after calling @link NXOpen::CAM::CAMObject::GetPath NXOpen::CAM::CAMObject::GetPath@endlink . <br> Created in NX11.0.2. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: NXOpen::CAM::Path * GetPath ( ); /** This must be called to establish proper part status <br> Created in NX11.0.2. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SavePath ( NXOpen::CAM::Path * theBuilder /** thebuilder */ ); /** Tells if the object has a path <br> Created in NX11.0.2. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: bool AskPathExists ( ); /** Create an empty path for the object <br> Created in NX11.0.2. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: NXOpen::CAM::Path * CreateEmptyPath ( ); /** Change the dialog customization of the object to use the explorer dialog style <br> Created in NX12.0.1. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void ConvertToExplorerDialog ( ); /// \cond NX_NO_DOC /** This is an internal API and can be changed at any time <br> Created in NX1872.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SaveMasterPath ( bool inThePart /** save the master path in the same part if true, else in master part*/ ); /// \endcond /// \cond NX_NO_DOC /** This is an internal API and can be changed at any time <br> Created in NX1872.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: bool LoadMasterPathFromPart ( const NXString & masterPathPartName /** Part file with master path */ ); /** This is an internal API and can be changed at any time <br> Created in NX1872.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ bool LoadMasterPathFromPart ( const char * masterPathPartName /** Part file with master path */ ); /// \endcond /// \cond NX_NO_DOC /** This is an internal API and can be changed at any time <br> Created in NX1872.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: bool LoadMasterPath ( ); /// \endcond /// \cond NX_NO_DOC /** This is an internal API and can be changed at any time <br> Created in NX1872.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: bool HasMasterPath ( ); /// \endcond /// \cond NX_NO_DOC /** This is an internal API and can be changed at any time <br> Created in NX1872.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void DeleteMasterPath ( ); /// \endcond /// \cond NX_NO_DOC /** This is an internal API and can be changed at any time <br> Created in NX1872.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void DeleteToolPath ( ); /// \endcond /// \cond NX_NO_DOC /** This is an internal API and can be changed at any time <br> Created in NX1899.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: NXString GetNameOfType ( ); /// \endcond /// \cond NX_NO_DOC /** This is an internal API and can be changed at any time <br> Created in NX1926.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: NXOpen::CAM::CAMObject::ValidationResult GetValidationResult ( NXOpen::CAM::CAMObject::ValidationType validationType /** validationtype */ ); /// \endcond /// \cond NX_NO_DOC /** This is an internal API and can be changed at any time <br> Created in NX2212.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void UpdateAndNotify ( bool updateAndNotifyMembers /** updateandnotifymembers */ ); /// \endcond }; } } #ifdef _MSC_VER #pragma warning(pop) #endif #ifdef __GNUC__ #ifndef NX_NO_GCC_DEPRECATION_WARNINGS #pragma GCC diagnostic warning "-Wdeprecated-declarations" #endif #endif #undef EXPORTLIBRARY #endif ”
10-23
// 获取坐标系对象的关键代码 NXOpen::NXObject* csysObj = orientGeometry->GetObject("CSYS_OBJECT"); if (!csysObj) { theUI->NXMessageBox()->Show("错误", NXMessageBox::DialogTypeError, "无法获取坐标系对象"); return errorCode; }这里加了无法创建坐标,:“#ifndef NXOpen_CAM_CAMOBJECT_HXX_INCLUDED #define NXOpen_CAM_CAMOBJECT_HXX_INCLUDED //-------------------------------------------------------------------------- // Copyright 2024 Siemens //-------------------------------------------------------------------------- // Header for C++ interface to JA API //-------------------------------------------------------------------------- // // Source File: // CAM_CAMObject.ja // // Generated by: // apiwrap // // WARNING: // This file is automatically generated - do not edit by hand // #ifdef _MSC_VER #pragma once #endif #include <NXOpen/NXDeprecation.hxx> #include <vector> #include <NXOpen/NXString.hxx> #include <NXOpen/Callback.hxx> #include <NXOpen/CAM_Path.hxx> #include <NXOpen/NXObject.hxx> #include <NXOpen/libnxopencpp_cam_exports.hxx> #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable:4996) #endif #ifdef __GNUC__ #pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif namespace NXOpen { namespace CAM { class CAMObject; } namespace CAM { class Path; } class NXObject; namespace CAM { class _CAMObjectBuilder; class CAMObjectImpl; /** Represents interface for all CAM Object <br> To create or edit an instance of this class, use @link NXOpen::CAM::ParamBuilder NXOpen::CAM::ParamBuilder @endlink <br> <br> Created in NX4.0.0. <br> */ class NXOPENCPP_CAMEXPORT CAMObject : public NXOpen::NXObject { /** The unit of feed rate */ public: enum FeedRateUnit { FeedRateUnitNone/** no feed rate unit*/, FeedRateUnitPerMinute/** use per minute as the feed rate unit*/, FeedRateUnitPerRevolution/** use per revolution as the feed rate unit */ }; /** Represents the CAM attribute type. */ public: enum Attr { AttrProjDiffTaxis/** proj diff taxis */ = 1, AttrProfileFlipMside/** profile flip mside */ , AttrBndSplineTangent/** bnd spline tangent */ , AttrBlankNormalDiffTaxis/** blank normal diff taxis */ , AttrBndHasSleepObj/** bnd has sleep obj */ , AttrClrnrNotParallelTaxis/** clrnr not parallel taxis */ , AttrBndNotParallelFloor/** bnd not parallel floor */ , AttrFloorNotUpToDate/** floor not up to date */ , AttrSingleProfileWithFirstCut/** single profile with first cut */ , AttrCutterConversionProblem/** cutter conversion problem */ , AttrPredefinedDepthConversionProblem/** predefined depth conversion problem */ , AttrAcceptDrivePosition/** accept drive position */ = 100, AttrReparametrization/** reparametrization */ = 110, AttrBetweenFromStart/** between from start */ = 120, AttrCurveCutRange/** curve cut range */ = 130, AttrFixGssmCornerData/** fix gssm corner data */ = 140, AttrPlmConversion/** plm conversion */ = 150, AttrPlmFeedcomp/** plm feedcomp */ , AttrPlmFillet/** plm fillet */ , AttrPlmSlowdown/** plm slowdown */ , AttrPlmGeometry/** plm geometry */ , AttrWedmPoints/** wedm points */ = 160, AttrCavityMillInheritTrimBnds/** cavity mill inherit trim bnds */ = 170, AttrRtdObsolete/** rtd obsolete */ = 1000, AttrZlevelHolderParamChange/** zlevel holder param change */ = 2000, AttrNcmObsoleteSeqControl/** ncm obsolete seq control */ = 2100, AttrNcmObsoleteCustomFeed/** ncm obsolete custom feed */ , AttrNcmObsoleteLocalRetract/** ncm obsolete local retract */ , AttrNcmClearTraversalZero/** ncm clear traversal zero */ , AttrNcmObsoleteEngretToClearance/** ncm obsolete engret to clearance */ , AttrGmcInvalidNxVersion/** gmc invalid nx version */ = 2201, AttrProbingInvalidNxVersion/** probing invalid nx version */ , AttrInspPathInvalidNxVersion/** insp path invalid nx version */ = 2300, AttrCustomDataGougingObsolete/** custom data gouging obsolete */ , AttrCustomDataGougingPartObsolete/** custom data gouging part obsolete */ , AttrCustomDataGougingDriveObsolete/** custom data gouging drive obsolete */ , AttrCustomDataIgnoreLoopsObsolete/** custom data ignore loops obsolete */ , AttrCustomDataIgnoreLoopsRemoved/** custom data ignore loops removed */ , AttrLimitToolRunOn/** limit tool run on */ = 2400, AttrScoprNcmChangeLinearNormalToPart/** scopr ncm change linear normal to part */ , AttrPossibleToolAxisProblem/** possible tool axis problem */ }; /** The status of the object */ public: enum Status { StatusComplete/** Object path has been output */, StatusRepost/** Object path must be post-processed */, StatusRegen/** Object path must be regenerated */, StatusApproved/** Object path has been approved as is */ = 4 }; /** Error Item */ public: struct ErrorItem { public: /** objecttag */ NXOpen::CAM::CAMObject * ObjectTag; public: /** errorcode */ int ErrorCode; public: ErrorItem() : ObjectTag(), ErrorCode() { } /** Constructor for the ErrorItem struct. */ public: ErrorItem(NXOpen::CAM::CAMObject * objectTagInitial /** objecttag */ , int errorCodeInitial /** errorcode */ ) : ObjectTag(objectTagInitial), ErrorCode(errorCodeInitial) { } }; /** Validation Types */ public: enum ValidationType { ValidationTypeGouge/** gouge */ = 1, ValidationTypeToolHolderCollision/** tool holder collision */ , ValidationTypeToolRapidCollision/** tool rapid collision */ , ValidationTypeHasPath/** has path */ , ValidationTypeSuspectPath/** suspect path */ , ValidationTypeFeedsSpeeds/** feeds speeds */ }; /** Validation Result */ public: enum ValidationResult { ValidationResultNotApplicable/** not applicable */ , ValidationResultOk/** ok */ , ValidationResultNotChecked/** not checked */ , ValidationResultFail/** fail */ }; private: CAMObjectImpl * m_camobject_impl; private: friend class _CAMObjectBuilder; protected: CAMObject(); public: ~CAMObject(); /** Set an integer value to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SetIntegerValue ( const NXString & title /** the name of the parameter index */, int value /** the integer value */ ); /** Set an integer value to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ void SetIntegerValue ( const char * title /** the name of the parameter index */, int value /** the integer value */ ); /** Set a real value to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SetRealValue ( const NXString & title /** the name of the parameter index */, double value /** the real value */ ); /** Set a real value to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ void SetRealValue ( const char * title /** the name of the parameter index */, double value /** the real value */ ); /** Set a string value to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SetStringValue ( const NXString & title /** the name of the parameter index */, const NXString & value /** the string value */ ); /** Set a string value to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ void SetStringValue ( const char * title /** the name of the parameter index */, const char * value /** the string value */ ); /** Set a boolean value to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SetBooleanValue ( const NXString & title /** the name of the parameter index */, bool value /** the boolean value */ ); /** Set a boolean value to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ void SetBooleanValue ( const char * title /** the name of the parameter index */, bool value /** the boolean value */ ); /** Set a object to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SetObject ( const NXString & title /** the name of the parameter index */, NXOpen::NXObject * value /** the object */ ); /** Set a object to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ void SetObject ( const char * title /** the name of the parameter index */, NXOpen::NXObject * value /** the object */ ); /** Set feed rate value and unit to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SetFeedRate ( const NXString & title /** the name of the parameter index */, double value /** the feed rate value */, NXOpen::CAM::CAMObject::FeedRateUnit unit /** the feed rate unit */ ); /** Set feed rate value and unit to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ void SetFeedRate ( const char * title /** the name of the parameter index */, double value /** the feed rate value */, NXOpen::CAM::CAMObject::FeedRateUnit unit /** the feed rate unit */ ); /** Set feed rate value and side to the parameter index for the object, side is only used in wire edm. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SetWireEdmFeedRate ( const NXString & title /** the name of the parameter index */, double value /** the feed rate value */, int side /** Inside = 0, Outside = 1 */ ); /** Set feed rate value and side to the parameter index for the object, side is only used in wire edm. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ void SetWireEdmFeedRate ( const char * title /** the name of the parameter index */, double value /** the feed rate value */, int side /** Inside = 0, Outside = 1 */ ); /** Set feed rate display color to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SetFeedRateColor ( const NXString & title /** the name of the paramter index */, int value /** the color number*/ ); /** Set feed rate display color to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ void SetFeedRateColor ( const char * title /** the name of the paramter index */, int value /** the color number*/ ); /** Set integer array value to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SetIntegerArrayValue ( const NXString & title /** the name of the parameter index */, const std::vector<int> & value /** the integer array */ ); /** Set integer array value to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ void SetIntegerArrayValue ( const char * title /** the name of the parameter index */, const std::vector<int> & value /** the integer array */ ); /** Set real array to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SetRealArrayValue ( const NXString & title /** the name of the parameter index */, const std::vector<double> & value /** the real array */ ); /** Set real array to the parameter index for the object. <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ void SetRealArrayValue ( const char * title /** the name of the parameter index */, const std::vector<double> & value /** the real array */ ); /** Set string array to the parameter index for the object <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SetStringArrayValue ( const NXString & title /** the name of the parameter index */, std::vector<NXString> & value /** the string array */ ); /** Set string array to the parameter index for the object <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ void SetStringArrayValue ( const char * title /** the name of the parameter index */, std::vector<NXString> & value /** the string array */ ); /** Set object array to the parameter index for the object <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SetObjectArrayValue ( const NXString & title /** the name of the parameter index */, const std::vector<NXOpen::NXObject *> & value /** the object array */ ); /** Set object array to the parameter index for the object <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ void SetObjectArrayValue ( const char * title /** the name of the parameter index */, const std::vector<NXOpen::NXObject *> & value /** the object array */ ); /** Get the integer value of the parameter index from the object. @return the integer value <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: int GetIntegerValue ( const NXString & title /** the name of the parameter index */ ); /** Get the integer value of the parameter index from the object. @return the integer value <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ int GetIntegerValue ( const char * title /** the name of the parameter index */ ); /** Get the real value of the parameter index from the object. @return the real value <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: double GetRealValue ( const NXString & title /** the name of the parameter index */ ); /** Get the real value of the parameter index from the object. @return the real value <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ double GetRealValue ( const char * title /** the name of the parameter index */ ); /** Get the boolean value of the parameter index from the object @return the boolean value <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: bool GetBooleanValue ( const NXString & title /** the name of the parameter index */ ); /** Get the boolean value of the parameter index from the object @return the boolean value <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ bool GetBooleanValue ( const char * title /** the name of the parameter index */ ); /** Get the string value of the parameter index from the object @return the string value <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: NXString GetStringValue ( const NXString & title /** the name of the parameter index */ ); /** Get the string value of the parameter index from the object @return the string value <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ NXString GetStringValue ( const char * title /** the name of the parameter index */ ); /** Get the object value of the parameter index from the object @return the object value <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: NXOpen::NXObject * GetObject ( const NXString & title /** the name of the parameter index */ ); /** Get the object value of the parameter index from the object @return the object value <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ NXOpen::NXObject * GetObject ( const char * title /** the name of the parameter index */ ); /** Get the feed rate value and unit of the parameter index from the object @return the feed rate unit <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: NXOpen::CAM::CAMObject::FeedRateUnit GetFeedRate ( const NXString & title /** the name of the parameter index */, double* value /** the feed rate value */ ); /** Get the feed rate value and unit of the parameter index from the object @return the feed rate unit <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ NXOpen::CAM::CAMObject::FeedRateUnit GetFeedRate ( const char * title /** the name of the parameter index */, double* value /** the feed rate value */ ); /** Get the feed rate value and side of the parameter index from the object, side is only used in wire edm. @return the feed rate side <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: int GetWireEdmFeedRate ( const NXString & title /** the name of the parameter index */, double* value /** the feed rate value */ ); /** Get the feed rate value and side of the parameter index from the object, side is only used in wire edm. @return the feed rate side <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ int GetWireEdmFeedRate ( const char * title /** the name of the parameter index */, double* value /** the feed rate value */ ); /** Get the feed rate color of the parameter index from the object. @return the color number <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: int GetFeedRateColor ( const NXString & title /** the name of the parameter index */ ); /** Get the feed rate color of the parameter index from the object. @return the color number <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ int GetFeedRateColor ( const char * title /** the name of the parameter index */ ); /** Get the integer array value of the parameter index from the object. @return the integer array <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: std::vector<int> GetIntegerArrayValue ( const NXString & title /** the name of the parameter index */ ); /** Get the integer array value of the parameter index from the object. @return the integer array <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ std::vector<int> GetIntegerArrayValue ( const char * title /** the name of the parameter index */ ); /** Get the real array value of the parameter index from the object. @return the real array <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: std::vector<double> GetRealArrayValue ( const NXString & title /** the name of the parameter index */ ); /** Get the real array value of the parameter index from the object. @return the real array <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ std::vector<double> GetRealArrayValue ( const char * title /** the name of the parameter index */ ); /** Get the string array value of the parameter index from the object. @return the string array <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: std::vector<NXString> GetStringArrayValue ( const NXString & title /** the name of the parameter index */ ); /** Get the string array value of the parameter index from the object. @return the string array <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ std::vector<NXString> GetStringArrayValue ( const char * title /** the name of the parameter index */ ); /** Get the object array value of the parameter index from the object. @return the object array <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: std::vector<NXOpen::NXObject *> GetObjectArrayValue ( const NXString & title /** the name of the parameter index */ ); /** Get the object array value of the parameter index from the object. @return the object array <br> Created in NX4.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ std::vector<NXOpen::NXObject *> GetObjectArrayValue ( const char * title /** the name of the parameter index */ ); /** Get the status of the input object. @return the object's status <br> Created in NX6.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: NXOpen::CAM::CAMObject::Status GetStatus ( ); /** Remove a specific 911 attribute from an object. <br> Created in NX5.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void Remove911Attribute ( NXOpen::CAM::CAMObject::Attr attrId /** the attribute Id */ ); /** Remove all 911 attributes from an object. <br> Created in NX5.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void RemoveAll911Attributes ( ); /** Check if a 911 attribute exists in an object. @return true -- 911 attribute exists <br> Created in NX5.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: bool Has911Attribute ( NXOpen::CAM::CAMObject::Attr attrId /** the attribute Id */ ); /** Returns the path. Call @link NXOpen::CAM::CAMObject::SavePath NXOpen::CAM::CAMObject::SavePath@endlink after calling @link NXOpen::CAM::CAMObject::GetPath NXOpen::CAM::CAMObject::GetPath@endlink . <br> Created in NX11.0.2. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: NXOpen::CAM::Path * GetPath ( ); /** This must be called to establish proper part status <br> Created in NX11.0.2. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SavePath ( NXOpen::CAM::Path * theBuilder /** thebuilder */ ); /** Tells if the object has a path <br> Created in NX11.0.2. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: bool AskPathExists ( ); /** Create an empty path for the object <br> Created in NX11.0.2. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: NXOpen::CAM::Path * CreateEmptyPath ( ); /** Change the dialog customization of the object to use the explorer dialog style <br> Created in NX12.0.1. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void ConvertToExplorerDialog ( ); /// \cond NX_NO_DOC /** This is an internal API and can be changed at any time <br> Created in NX1872.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void SaveMasterPath ( bool inThePart /** save the master path in the same part if true, else in master part*/ ); /// \endcond /// \cond NX_NO_DOC /** This is an internal API and can be changed at any time <br> Created in NX1872.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: bool LoadMasterPathFromPart ( const NXString & masterPathPartName /** Part file with master path */ ); /** This is an internal API and can be changed at any time <br> Created in NX1872.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ bool LoadMasterPathFromPart ( const char * masterPathPartName /** Part file with master path */ ); /// \endcond /// \cond NX_NO_DOC /** This is an internal API and can be changed at any time <br> Created in NX1872.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: bool LoadMasterPath ( ); /// \endcond /// \cond NX_NO_DOC /** This is an internal API and can be changed at any time <br> Created in NX1872.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: bool HasMasterPath ( ); /// \endcond /// \cond NX_NO_DOC /** This is an internal API and can be changed at any time <br> Created in NX1872.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void DeleteMasterPath ( ); /// \endcond /// \cond NX_NO_DOC /** This is an internal API and can be changed at any time <br> Created in NX1872.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void DeleteToolPath ( ); /// \endcond /// \cond NX_NO_DOC /** This is an internal API and can be changed at any time <br> Created in NX1899.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: NXString GetNameOfType ( ); /// \endcond /// \cond NX_NO_DOC /** This is an internal API and can be changed at any time <br> Created in NX1926.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: NXOpen::CAM::CAMObject::ValidationResult GetValidationResult ( NXOpen::CAM::CAMObject::ValidationType validationType /** validationtype */ ); /// \endcond /// \cond NX_NO_DOC /** This is an internal API and can be changed at any time <br> Created in NX2212.0.0. <br> <br> License requirements : cam_base ("CAM BASE") OR insp_programming ("INSPECTION PROGRAMMING") */ public: void UpdateAndNotify ( bool updateAndNotifyMembers /** updateandnotifymembers */ ); /// \endcond }; } } #ifdef _MSC_VER #pragma warning(pop) #endif #ifdef __GNUC__ #ifndef NX_NO_GCC_DEPRECATION_WARNINGS #pragma GCC diagnostic warning "-Wdeprecated-declarations" #endif #endif #undef EXPORTLIBRARY #endif ”
10-23
【无人机】基于改进粒子群算法的无人机路径规划研究[和遗传算法、粒子群算法进行比较](Matlab代码实现)内容概要:本文围绕基于改进粒子群算法的无人机路径规划展开研究,重点探讨了在复杂环境中利用改进粒子群算法(PSO)实现无人机三维路径规划的方法,并将其与遗传算法(GA)、标准粒子群算法等传统优化算法进行对比分析。研究内容涵盖路径规划的多目标优化、避障策略、航路点约束以及算法收敛性和寻优能力的评估,所有实验均通过Matlab代码实现,提供了完整的仿真验证流程。文章还提到了多种智能优化算法在无人机路径规划中的应用比较,突出了改进PSO在收敛速度和全局寻优方面的优势。; 适合人群:具备一定Matlab编程基础和优化算法知识的研究生、科研人员及从事无人机路径规划、智能优化算法研究的相关技术人员。; 使用场景及目标:①用于无人机在复杂地形或动态环境下的三维路径规划仿真研究;②比较不同智能优化算法(如PSO、GA、蚁群算法、RRT等)在路径规划中的性能差异;③为多目标优化问题提供算法选型和改进思路。; 阅读建议:建议读者结合文中提供的Matlab代码进行实践操作,重点关注算法的参数设置、适应度函数设计及路径约束处理方式,同时可参考文中提到的多种算法对比思路,拓展到其他智能优化算法的研究与改进中。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值