Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

How to point specific folder on this macro?

[ Edited ]

Hi,

 

I want to point this journal to a specific folder, rather that selecting manually the folder each time.

 

If it is possible, I want to get all NC code to D:\1000_DEMO_NX9 \ NC_PROGRAMS or orther location that can be changed.

 

Where I can cofigure this?

5 REPLIES
Solution
Solution
Accepted by topic author Igor
‎08-26-2015 04:32 AM

Re: How to point specific folder on this macro?

The variable tempPathSession contains the path to the selected folder, so you will just have to hardcode that.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX11.0 EAP, NX12.0 EAP

How to Get the Most from Your Signature in the Community

Re: How to point specific folder on this macro?

Hi Stefan,

 

Thanks, this is working.

Re: How to point specific folder on this macro?

Hi,

 

Other question, is there the possibility to open the folder window directory to a specific location?

For example, N:\_JOBS\

because, I have all the parts on a Server.

 

 

Solution
Solution
Accepted by topic author Igor
‎08-26-2015 04:32 AM

Re: How to point specific folder on this macro?

This line sets the folder the browser window opens in to the folder containing the NX part:

 

With FolderBrowserDialog1
            .SelectedPath = Path.GetDirectoryName(sPartFullPath)

 

You can hard code the initial directory here instead, i.e.:

 

With FolderBrowserDialog1
            .SelectedPath = "N:\_JOBS"

 

Solution
Solution
Accepted by topic author Igor
‎08-26-2015 04:32 AM

Re: How to point specific folder on this macro?

I would really spend some time reading up on the VB.NET commands and methods at MSDN.

 

If you search for FolderBrowserDialog at http://msdn.microsoft.com/en-us/library/ you will find http://msdn.microsoft.com/en-us/library/system.windows.forms.folderbrowserdialog%28v=vs.110%29.aspx which contains descriptions of all the methods and properties of the dialog.

 

It really helps you to have a basic understanding of where to find information about the development language you use.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX11.0 EAP, NX12.0 EAP

How to Get the Most from Your Signature in the Community