The present invention relates to the field of object location information refreshing technology in AutoCAD P&ID, and specifically relates to a new refreshing method for object location information in Autodesk AutoCAD P&ID, including the following steps: 1) opening the blueprints that need to refresh the object location information one by one; 2) reading the locating point coordinates of the object that needs to refresh the location information in the blueprints; S3, get the length, height and center point of the current open drawing's view port, calculate the maximum point coordinate of the internal drawing frame combining with the minimum point coordinate of the current open drawing's inner drawing frame, determine the display area of the current open drawing according to the minimum point coordinate and the maximum point coordinate, and divide the X-axis and Y-axis of the display area into several segments to form the XY-axis network, for the X-axis and Y-axis. Each paragraph is marked separately. According to the coordinates of the locating points, the location information of the object on the XY axis network is obtained. The location information refers to the identification of the segment of the X axis and Y axis corresponding to the object on the XY axis network.
【技术实现步骤摘要】
一种用于AutodeskAutoCADP&ID的对象位置信息的刷新方法
本专利技术涉及AutoCADP&ID中对象位置信息自动获取的
,具体涉及一种用于AutodeskAutoCADP&ID的对象位置信息的刷新方法。
技术介绍
AutoCADP&ID是一款基于AutoCAD平台,用于创建、修改、管理管道和工艺流程图的设计软件产品。作为欧特克数字化工厂设计解决方案的重要组成部分,AutoCADP&ID能够大幅提高工厂设计人员的工作效率,轻松应对愈加复杂的工厂设计问题。欧特克为工程设计部门提供了易于使用的二维和三维设计解决方案。由于在AutoCADP&ID中设备、阀门、页间连接符的符号所在的区域位置是有根据图框的横轴、纵轴形成的区块来确定的,例如当需要确定一个阀门所在的区域位置信息,必须先在确定其定位点,然后分别向XY两个方向确认各画一条线段来精确定位其在图纸中所处区号,最后再把这个两个区号填写在区域位置属性中,由于P&ID本身没有自动计算特殊对象区域位置的功能,目前只有人工在图上逐个对象计算位置然后填写特性,这样的操作的效率非常低,项目如果图纸太多,则需要每张图纸逐张打开进行类似的操作。
技术实现思路
本专利技术针对上述问题,提出了一种利用P&ID对象快速定位的批量计算的方法,目的是为了提高采用AutodeskAutoCADP&ID设计的图纸中的对象的位置信息的刷新工作的效率。为达到以上目的,本专利技术采用的技术方案是一种用于AutodeskAutoCADP&ID的对象位置信息的刷新方 ...
【技术保护点】
1.一种用于Autodesk AutoCAD P&ID的对象位置信息的刷新方法,用于对采用Autodesk AutoCAD P&ID设计的图纸中的对象的位置信息进行刷新,包括如下步骤:步骤S1,在Autodesk AutoCAD P&ID中将需要对图中所述对象的位置信息进行刷新的图纸逐张打开,判断当前打开的所述图纸中是否只有一个布局,是则执行步骤S2,否则结束;步骤S2,读取当前打开的所述图纸中需要进行位置信息刷新的所述对象的定位点坐标;步骤S3,获取当前打开的所述图纸的视口的长度、高度和中心点,并结合当前打开的所述图纸的内图框的最小点坐标计算出所述内图框的最大点坐标,根据所述最小点坐标和所述最大点坐标确定当前打开的所述图纸的显示区域,并把所述显示区域的X轴和Y轴等分成若干段,形成XY轴网络,对所述X轴和所述Y轴的每一段分别进行标识;步骤S4,根据所述定位点坐标得到所述对象在所述XY轴网络上的位置信息,所述位置信息是指所述对象在所述XY轴网络上所对应的所述X轴和所述Y轴的段的标识。
【技术特征摘要】
1.一种用于AutodeskAutoCADP&ID的对象位置信息的刷新方法,用于对采用AutodeskAutoCADP&ID设计的图纸中的对象的位置信息进行刷新,包括如下步骤:步骤S1,在AutodeskAutoCADP&ID中将需要对图中所述对象的位置信息进行刷新的图纸逐张打开,判断当前打开的所述图纸中是否只有一个布局,是则执行步骤S2,否则结束;步骤S2,读取当前打开的所述图纸中需要进行位置信息刷新的所述对象的定位点坐标;步骤S3,获取当前打开的所述图纸的视口的长度、高度和中心点,并结合当前打开的所述图纸的内图框的最小点坐标计算出所述内图框的最大点坐标,根据所述最小点坐标和所述最大点坐标确定当前打开的所述图纸的显示区域,并把所述显示区域的X轴和Y轴等分成若干段,形成XY轴网络,对所述X轴和所述Y轴的每一段分别进行标识;步骤S4,根据所述定位点坐标得到所述对象在所述XY轴网络上的位置信息,所述位置信息是指所述对象在所述XY轴网络上所对应的所述X轴和所述Y轴的段的标识。2.如权利要求1所述的方法,其特征是:在所述步骤S3中,把所述显示区域的X轴和Y轴等分成8段,所述X轴由字母标识,所述Y轴由数字标识。3.如权利要求1所述的方法,其特征是:...
【专利技术属性】
技术研发人员:王佺,高洁,
申请(专利权)人:中国核电工程有限公司,
类型:发明
国别省市:北京,11
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。