Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need sample scripts/commands #5

Open
GoogleCodeExporter opened this issue Mar 16, 2015 · 4 comments
Open

Need sample scripts/commands #5

GoogleCodeExporter opened this issue Mar 16, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

When a new user downloads the RevitPythonShell, they should have a basic set of 
commands to play around with.

We could start by porting some of Jeremy Tammiks examples to python.


Original issue reported on code.google.com by dthomas.ch on 15 Jul 2010 at 10:41

@eirannejad
Copy link
Contributor

@daren-thomas Should we refer to RevitAPIDocs Code Samples and pyRevit for this? or actually include sample scripts?

Maybe adding a menu that lists sample scripts so users can load and test easily.

@eirannejad eirannejad self-assigned this Jan 5, 2018
@daren-thomas
Copy link
Member

Woah! RevitAPIDocs Code Samples! I hadn't seen that! What are these based on? Are they based on Jeremy's code? We should definitely refer to these projects!

I wonder... can we figure out a way to load the code samples from within RPS? Create a... load code sample button for the text pad and that would (scrape?) the RevitAPIDocs website? Maybe there is an API? Ah! I just found the repo with the code... should be as easy as using some sort of GitHub api to read the files...

@gtalarico are you interested in this happening? What are your requirements for embedding the code samples into RPS?

@eirannejad
Copy link
Contributor

@daren-thomas Codes are mostly done by Gui and contributed by other users.

@gtalarico I think it'll make more sense if RPS has link buttons to RevitAPIdocs and Gui implements a search for the code samples on the site. This way we won't be duplicating interfaces.

However I'm all for having a snippet system in RPS similar to the way Atom snippets work with a .cson file. I think that'd be a great tool for more advanced users.

@gtalarico
Copy link

Thanks @daren-thomas !
The code samples are hosted on github, revitapidocs.com uses github api to pull them and show it on the website.
https://github.com/gtalarico/revitapidocs.code

I am fine with any of these amazing ideas.

But we should also have a plan to merge or preserve the amazing docs you have built on Gitbook:
Like this one:
https://daren-thomas.gitbooks.io/scripting-autodesk-revit-with-revitpythonshell/content/webserver_example/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants