五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

Python for UG NX 11.0 demo

2021-01-07 23:07 作者:最快樂的懶蟲  | 我要投稿

import NXOpen

import NXOpen.Validate


def main():


? ? # Get the NX session, work part, display part.

? ? theSession = NXOpen.Session.GetSession()

? ? workPart = theSession.Parts.Work

? ? displayPart = theSession.Parts.Display


? ? # Get the NX Check-Mate Validator object.

? ? validators1 = theSession.ValidationManager.FindValidator("Check-Mate")


? ? # Get the NX Check-Mate ValidatorOptions, and set options.

? ? validatorOptions1 = validators1[0].ValidatorOptions


? ? validatorOptions1.SkipChecking = False

? ? validatorOptions1.SkipCheckingDontLoadPart = False

? ? validatorOptions1.SaveResultInTeamcenter = NXOpen.Validate.ValidatorOptions.SaveModeTypes.DoNotSave

? ? validatorOptions1.SavePartFile = NXOpen.Validate.ValidatorOptions.SaveModeTypes.DoNotSave

? ? validatorOptions1.SaveResultInPart = False


? ? # Clear part nodes if any.

? ? validators1[0].ClearPartNodes()


? ? # Appends the full path of a part file or the current work part.

? ? validators1[0].AppendPartNode(workPart)


? ? # Manually add this line to clean all existing tests

? ? validators1[0].ClearCheckerNodes()


? ? # Select a checker and append it into the Validator object.

? ? classnames1 = [None]

? ? classnames1[0] = "%mqc_report_browseable_features"

? ? validators1[0].AppendCheckerNodes(classnames1)


? ? # Execute the Check-Mate checker.

? ? status1 = validators1[0].Commit()


? ? # Get a Parser object, and show the checker result.

? ? parsers1 = []

? ? parsers1 = theSession.ValidationManager.FindParser("Validation Gadget")


? ? parsers1[0].ClearResultObjects()

? ? parsers1[0].DataSource = NXOpen.Validate.Parser.DataSourceTypes.MostRecentRun

? ? parsers1[0].MaxDisplayObjects = 10

? ? parsers1[0].Commit()


if __name__ == "__main__":

? ? main()


"""

file path:

C:\Program Files\Siemens\NX 11.0\UGOPEN\SampleNXOpenApplications\Python\CheckMate\ExecuteCheckerAndGetResults\ExecuteCheckerAndGetResults.py


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

? ? ? ? ? ? ? ? ? ? ? ? ExecuteCheckerAndGetResults Example

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


-----------

Description

-----------

? ? This example demonstrates how to record the journal of executing a Check-Mate checker,

? ? and how to get the executing result of a Check-Mate checker by playing the journal in NX.


? ? This example uses the Check-Mate checker %mqc_report_browseable_features whose

? ? display name is "Number of browseable features", and this Check-Mate checker reports

? ? the number of browseable features in the work part. This example uses a journal?

? ? recorded using the Python programming language.


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

Files required

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

? ? ExecuteCheckerAndGetResults.py

? ??

? ? You can use the sample part file ExecuteCheckerAndGetResults.prt located at?

? ? $UGII_BASE_DIR/ugopen/SampleNXOpenApplications/C++/CheckMate/ExecuteCheckerAndGetResults

? ? or any part file with modeling features.


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

Settings before Launching NX

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

? ? None


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

Settings after Launching NX

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

? ? None


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

Example execution steps

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


? ? 1. Start NX.


? ? 2. Open the part file ExecuteCheckerAndGetResults.prt.


? ? 3. Change the Role to Advanced if not set.


? ? 4. Find the four features in the Part Navigator in the work part.


? ? 5. Open Check-Mate on the HD3D Tools. Click the Set Up Tests button to open Set Up Tests dialog.


? ? 6. Click Tests to load all checkers. Notice that there will be a tree structure in the Categories area.


? ? 7. Execute the checker by the following method:


? ? ? ? 7.1 Journal execution

? ? ? ? ? ? -----------------

? ? ? ? ? ? Invoke ExecuteCheckerAndGetResults.py file

? ? ? ? ? ? using Tools->Journal->Play... (Alt+F8).


-----

Note:

-----

? ? 1. A Check-Mate license? is required to run the example. See the?

? ? ? ?online documentation for details of licensing.


? ? 2. This example was generated by recording this workflow:


? ? ? ?2.1 Open Check-Mate on the HD3D Tools. Click the Set Up Tests button to open Set Up Tests dialog.

? ? ? ?2.2 Click Tests to load all checkers. Notice that there will be a tree structure in the Categories area.

? ? ? ?2.3 Select the Check-Mate checker Get Information->Modeling->Number of browseable features. Click the Add to Selected button.

? ? ? ?2.4 The checker will appear in the Chosen Tests area. Click Execute Check-Mate button to execute the chosen checker.

? ? ? ?2.5 Notice four features will be reported in the Results area of the Check-Mate.


-----------

CAVEATS

-----------


? ? None

"""

Python for UG NX 11.0 demo的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
九江市| 天峻县| 彭泽县| 古丈县| 西华县| 汕尾市| 桦甸市| 平武县| 周口市| 射阳县| 张家港市| 手机| 永康市| 鹤庆县| 保亭| 大厂| 彩票| 屏东县| 铜梁县| 泰顺县| 水富县| 长治县| 临安市| 五常市| 呼玛县| 吴桥县| 敖汉旗| 宁强县| 军事| 平乐县| 昆明市| 静海县| 辉县市| 宾阳县| 前郭尔| 如东县| 彭泽县| 临沂市| 上高县| 河北省| 凤山县|