五月天青色头像情侣网名,国产亚洲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ó)家法律
南雄市| 和硕县| 永年县| 无棣县| 山阳县| 靖江市| 六盘水市| 罗山县| 漳浦县| 石狮市| 申扎县| 尉犁县| 乌恰县| 普陀区| 丰台区| 海淀区| 婺源县| 霞浦县| 桂东县| 贵港市| 绥德县| 大足县| 大连市| 高安市| 阿拉尔市| 岑溪市| 梧州市| 突泉县| 普格县| 武平县| 大埔县| 郯城县| 临沂市| 吉木萨尔县| 阜康市| 开鲁县| 渑池县| 清水县| 丰原市| 黄骅市| 鱼台县|