cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Translate the entire conversation x

NX工具栏自定义检入跟WGM 检入产生的效果不一样

BL_9537051
12-Amethyst

NX工具栏自定义检入跟WGM 检入产生的效果不一样

I am using Windchill PDMLink Release 12.0 and Datecode with CPS 12.0.0.1 

NX新建模型时先改变存储位置,在保存工作区之前先保存本地(就是开始选的那个位置) 
完了再保存工作区 
这时候如果直接在WGM中点【检入】 没有问题 
如果在NX工具端点【自定义检入】,就会产生错误的模型编码 

 

11 REPLIES 11

详细请看附件描述

This looks like perhaps the cache is not clearly defined in the WGM for NX.

Do you have environment variables defined for the WGM to point the cache to a location? 

 

BL_9537051
12-Amethyst
(To:Dobi)

谢谢您的回复,环境变量都有设定的,只是我们的

BL_9537051_0-1747364413354.png

 

BL_9537051_1-1747364497896.png

 

具体详细的过程描述可以参看附件呢

 这种操作的过程是否哪里不支持 原因是为何

我们想知道的是 NX工具端的自定义检入 跟  WGM里面的检入 有何区别

谢谢

 

Cache looks setup correctly. 

What are your model and drawing .pax file looking like? 

On the NX side are you using default templates (and do you have a UGII_TEMPLATE_DIR in your ugii_env.dat)? 

 

Custom check-in ought to behave the same from both NX and WGM. The difference between it and auto-checkin is that it pops up with options that give you the same UI as you get when you check in from WGM. The end result is unchanged though. 

 

I think the default model location is likely a setting on the NX side... I'll check my nx_site.dpv and .mtx to verify. Perhaps load_options.def??

BL_9537051
12-Amethyst
(To:Dobi)

非常感谢您的回复

我再精确下我的问题

如果我在新建模型的时候 将模型的默认位置(默认位置是WGM里面设置的文件系统路径)改成另一个位置比如D:\newplace

我在设计完后,在NX工具端点【保存】会保存到D:\newplace   ,如果我点【保存至工作区】,模型会保存到最开始的默认位置(默认位置是WGM里面设置的文件系统路径)。这个时候再点【自定义检入】就会出现模型编码异常的情况,如果我是直接在WGM里面点【检入】就正常. 所以这里面两个地方还是有差异。

我有用word做了一个详细的过程

我是小白,希望能得到大白们的帮助 谢谢

Ah, I understand now!

So your process is:

1. File/New in NX

2. Change the model location to somewhere other than the active workspace

3. Save --> model saves to the new specified location

At this stage WGM has no knowledge of your model because it doesn't exist within it's cache location. You picked a different location for it to be saved to and as a result the check in buttons are grayed out. 

Dobi_0-1747368755016.png

This is you working offline. Why would you not save into the workspace? 

 

If - at this point - you want to check your file in from D:\PLM Test Data into Windchill, you have to be careful with the "Save to Workspace" button. For a single file, it'll work fine.

If you have assemblies, it is unlikely to save your reference models and instead may just save your assembly into the workspace. Your references will still exist elsewhere. When you check that in, you'll get a lot of ghost files because Windchill doesn't have access to data outside of the workspace. 

 

If instead your process is:

1. File/New in NX

2. Save --> model saves to active workspace

You will be able to check in normally and all of your model references will by default save to the active workspace. That is the best way to go. Anything else and you may as well not use a PDM to manage your data. 

BL_9537051
12-Amethyst
(To:Dobi)

非常感谢您的耐心详细的回复,那设计单位主管他们认为在设计数据的时候 先将其保存在另一个非工作区的位置很安全,这样如果工作区数据被移除且没有传到服务器上的话 ,他们本地还能有一份数据。

他们想在设计单位去宣传 让大家形成一种这样的设计思维即每个模型都现在本地保存一份。

I understand the thought process but can easily argue that your local copy is much less safe than if it were backed up on the Windchill server. 

If that is how you're supposed to work, you are much better served by disconnecting NX from WGM and working locally. When you're ready to check in, connect the two and import all of your data into the workspace and then check in. 

 

Saving to a workspace does in fact save to your local drive. That's what local cache is for. If you poke around your D:\cache\.wfs and D:\cache\.wwgm folders, you'll see all of your NX files there. You working outside of the active workspace just duplicates that. Now, you shouldn't save directly there outside of WGM because then Windchill won't know of the files since it wouldn't have put them there. That's why you ought to work through the WGM to manage that interaction. 

NX has to have a local file to open it as is... that's how on-premise CAD software works. Your active workspace is one of four locations your data can exist (RAM while you're working but haven't saved, workspace - i.e. local folder - when you save, server-side workspace when you upload and then ultimately the server when you check-in)

 

And if you're worried about data accidentally being removed: you can set a preference to auto-upload on save (so your data is automatically backed up on the server-side workspace with each save) and then just implement a process to check in regularly. 

 

Honestly, I have more of an issue with my users NOT removing things from a workspace than the opposite. 

BL_9537051
12-Amethyst
(To:Dobi)

haha ,十分感谢,我再根据您提出的建议,想一想,摸一摸

BL_9537051
12-Amethyst
(To:Dobi)

不好意思 老师 我想就您说的再请教个问题

 D:\cache\.wfs and D:\cache\.wwgm folders 里面好像并没有缓存文件

我测的看在如下这个位置,老师 请问这个是我在NX端点保存(不上载)后 他会保存到本地缓存目录文件吗。那么万一我上载到服务器端工作区后,服务器端工作区文件不小心移除掉了,我是否能从这个本地缓存目录的文件找到我刚绘制的那个模型呢,我看下面这个途中的这个模型文件好像没有后缀...

BL_9537051_0-1747707855787.png

 

If you're working with NX, the actual .prt files will be in cache. 

 

Go to D:\cache\.wfs and show hidden files and folders:

Dobi_0-1747708801565.png

There's going to be another .wfs folder in there. Within it you'll have folders for your Windchill servers. If you have one, there will be 1 folder there. Inside of there will be folders that correspond to your workspaces and within those will be your .prt files. 

 

There is a process for how data moves between the different cache locations within your cache so the data may sometimes be there and sometimes in .wwgm/.ws/<Windchill server>/<Workspace> location. 

 

YOU SHOULD NEVER MANUALLY PUT DATA THERE. It won't work. You need to use WGM to interact with your NX data on the front end through active workspaces. This is just where it ends up. 

Announcements

Top Tags