找回密码
注册

QQ登录

只需一步,快速开始

收听 站内信

danyfer

在哪里成长,在哪里回报。感恩生活

删除干涉分析结果

2012-6-25 09:13   浏览量(703)   评论(0)   UG二次开发

个人分类: UG二次开发——java

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;
 }

}

facelist doodle 涂鸦板
您需要登录后才可以评论 登录 | 注册

QQ|关于我们|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.

返回顶部