package com.gwm.nx.temp;
import java.rmi.RemoteException;
import nxopen.BaseSession;
import nxopen.ListingWindow;
import nxopen.NXException;
import nxopen.Session;
import nxopen.SessionFactory;
import nxopen.Tag;
import nxopen.UFSession;
import nxopen.uf.*;
public class BodyClearenceDel {
/**
* @param args
* @throws NXException
* @throws RemoteException
*/
public static void main(String[] args) throws NXException, RemoteException {
// TODO Auto-generated method stub
Session theSession=null;
UFSession theUFSession=null;
theSession=(Session)SessionFactory.get("Session");
theUFSession=(UFSession)SessionFactory.get("UFSession");
ListingWindow lw = theSession.listingWindow();
lw.open();
UFPart ufPart = theUFSession.part();
Tag part_tag=ufPart.askDisplayPart();
UFClear ff=theUFSession.clear();
ff.deleteAll(part_tag); //删除所有已存在的干涉检查结果集
}
public static int getUnloadOption() {
return BaseSession.LibraryUnloadOption.IMMEDIATELY;
}
}
|关于我们|sitemap|小黑屋|Archiver|手机版|UG网-UG技术论坛-青华数控模具培训学校 ( 粤ICP备15108561号 )
GMT+8, 2024-3-29 19:10 , Processed in 0.036319 second(s), 22 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2023 Discuz! Team.