cancel
Showing results for 
Search instead for 
Did you mean: 

How to point specific folder on this macro?

Genius
Genius

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

Re: How to point specific folder on this macro?

Esteemed Contributor
Esteemed Contributor

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?

Genius
Genius

Hi Stefan,

 

Thanks, this is working.

Re: How to point specific folder on this macro?

Genius
Genius

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.

 

 

Re: How to point specific folder on this macro?

Siemens Phenom Siemens Phenom
Siemens Phenom

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"

 

Re: How to point specific folder on this macro?

Esteemed Contributor
Esteemed Contributor

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