Bentley Communities
Site
Search
User
Site
Search
User
Product Communities
GenerativeComponents
GenerativeComponents Forum
Sign In
All tags
Csharp
GC
Bentley
c
c#
compiler
CR
debugging
error
Function
GC Generative Components
GenerativeComponents
IO
Programming
toolbox
toybox
TR
v8i
Visual Studio
Windows 7
getting the directory of the current gct file from Csharp
Kirk Martini
Hello: I am writing custom features in C#. I would like to be able to write files to the folder where the current gct file resides. Does anyone know how to determine that folder from C#?
over 13 years ago
GenerativeComponents
GenerativeComponents Forum
how does C# say 2d?
Ben Doherty
so... i'm a bit of a n00b when it comes to this c# stuff. and i was wondering if anyone knew how to pass a 2d (or n d) array back to GC. this currently passes a 1d array and then I have to re construct it with GCscript, even though when it gets passed…
over 15 years ago
GenerativeComponents
GenerativeComponents Forum
Re: Trying to learn c# - build errors -
Ben Doherty
Those errors are all GC specific, it looks like you haven't got the right assemblies loaded. from my very n00b expereince, I think you'll have to load them manually go to the solution explorer , right click references , click add…
over 15 years ago
GenerativeComponents
GenerativeComponents Forum
Re: File.Exist
Ben Doherty
I don't think there is, but i've put one into the NP toolkit to play with ( attatched here ) Is is to test if an excel file exists before trying to write data to it? I don't really understand the second question i'm afraid.
over 14 years ago
GenerativeComponents
GenerativeComponents Forum
can somebody post VS2008_Solutions.zip for V8i, mine is missing.
Ben Doherty
I can't find the generic C# solutions for V8i, are they in a funny place, or have a funny name or something? Could someone post a copy anyway, in case i'm just an anomaly ta
over 14 years ago
GenerativeComponents
GenerativeComponents Forum
Re: c# functions
Ben Doherty
Hi, this is what it outputs, i have 9.9.5.50 running on this machine too, and it compiled it just fine. I'm pretty sure that the API has changed, and it'd be really useful to be told how! C:\Windows\system32> "C:\Windows\Microsoft.NET\Framework…
over 14 years ago
GenerativeComponents
GenerativeComponents Forum
Re: getting the directory of the current gct file from Csharp
Kirk Martini
Thanks for your help. I was finally able to do what I want with the following: { GraphDomain domain = GCTools.UserGraphDomain.SelectedGraph.Domain; string gctFileDir = domain.CurrentDirectory; } I am interested to use a C# function…
over 13 years ago
GenerativeComponents
GenerativeComponents Forum
get assembly dir.
cerver
can someone tell me how to query, in c#, the users assembly directory. thnaks
over 15 years ago
GenerativeComponents
GenerativeComponents Forum
problem with references
Ben Doherty
Hi, I'm trying to recompile my CS functions, and my references look like this at the moment: using System; using System.Collections.Generic; //using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Media; using System…
over 13 years ago
GenerativeComponents
GenerativeComponents Forum
Which Scripting Language ?
Jydeda
I understand the GC is based on the C Sharp Scripting language, and that it is a good idea to get one of the "for dummies" books to get a basic background on scripting. To avoid going way over and above what is required which release of C Sharp is…
over 10 years ago
GenerativeComponents
GenerativeComponents Forum
CR - Allow any directory for user defined assemblies
Ben Doherty
It is such a drag having to migrate all my CS files to the new folder every time there is a new version. Can you change it back to the way it was once upon a time when we could put our hand written .cs files anywhere we liked please.
over 12 years ago
GenerativeComponents
GenerativeComponents Forum
View related content throughout GenerativeComponents
More
Cancel