- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to activate the folder(Waterline). But I can not get its name. How do I activate it?
Solved! Go to Solution.
The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.
I want to activate the folder(Waterline). But I can not get its name. How do I activate it?
Solved! Go to Solution.
IF entity_exists($entity("Featureset","")) {
ACTIVATE FOLDER ${dirname(pathname($entity("Featureset","")))}
}
Rafael Sansão
OptiNC - www.optinc.tech
Thank you. No error. But it doesn't work properly. I print it out and the path is not what I want. See the picture below.
IF entity_exists($entity("Featureset","")) {
string $p=dirname(pathname($entity("Featureset","")))
print $p
}
I tried this,
IF entity_exists($entity("Featureset","")) {
string $p=pathname($entity("Featureset",""))
print $p
}
and got "Featureset\FCS-24MM-DIA-M16-REG". Still not right.
The active hole feature set must be inside the folder. Looking at the image you uploaded, it is out of the folder.
Rafael Sansão
OptiNC - www.optinc.tech
Here you go
DIALOGS MESSAGE OFF
DIALOGS ERROR OFF
STRING LIST folders = get_folders('FeatureSet')
INT idx = INPUT CHOICE folders "Pick a folder"
ACTIVATE FOLDER ${folders[idx]}
DIALOGS MESSAGE ON
DIALOGS ERROR ON
Yes. You were right. The feature set is out of the folder. Thank you so much!