The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Python
 Create new subfolder with external python

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
TorbenS Posted - 01/05/2021 : 09:48:36 AM
Hello everyone,

I try to automate the creation of my graphs. Therefore I use external Python 3.9.1 and the originpro libary and I am already able to create my graphs in origin in this fashion.

Before, I liked to order different graphs in subfolders in the project explorer. It would be very nice if I could create subfolders in the project explorer with external Python. Until now I did not found the correct function which does this for me. But, I am relativly new to Python, so maybe I did not saw it or did not understood it correctly.
So if there is such a function it would be nice if you let me know.

Thanks in advance!
Cheers
Torben
2   L A T E S T    R E P L I E S    (Newest First)
TorbenS Posted - 01/06/2021 : 11:10:50 AM
Hey,

the code works perfectly for me!
Thank you.

Torben
YimingChen Posted - 01/05/2021 : 10:19:08 AM
Hi,

Use Python script below in external Python:

import originpro as op
fldr = op.po.RootFolder.Folders.Add('subfolder')
fldr.Activate()



James


The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000